File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ The precompile is deployed at a reserved address in the precompile address space
2222
2323``` solidity
2424interface INativeToken {
25- function mint(address to, uint256 amount);
26- function burn(address from, uint256 amount);
27- function addToAllowList(address account);
28- function removeFromAllowList(address account);
25+ function mint(address to, uint256 amount) external ;
26+ function burn(address from, uint256 amount) external ;
27+ function addToAllowList(address account) external ;
28+ function removeFromAllowList(address account) external ;
2929}
3030```
3131
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ use std::sync::OnceLock;
1212
1313sol ! {
1414 interface INativeToken {
15- function mint( address to, uint256 amount) ;
16- function burn( address from, uint256 amount) ;
17- function addToAllowList( address account) ;
18- function removeFromAllowList( address account) ;
15+ function mint( address to, uint256 amount) external ;
16+ function burn( address from, uint256 amount) external ;
17+ function addToAllowList( address account) external ;
18+ function removeFromAllowList( address account) external ;
1919 }
2020}
2121
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ We will implement a custom precompile for native token minting. The precompile w
4545
4646``` solidity
4747interface INativeToken {
48- function mint(address to, uint256 amount);
49- function burn(address from, uint256 amount);
50- function addToAllowList(address account);
51- function removeFromAllowList(address account);
48+ function mint(address to, uint256 amount) external ;
49+ function burn(address from, uint256 amount) external ;
50+ function addToAllowList(address account) external ;
51+ function removeFromAllowList(address account) external ;
5252}
5353```
5454
You can’t perform that action at this time.
0 commit comments