Skip to content

Commit 7bb0c85

Browse files
authored
docs: mark INativeToken functions as external (#66)
1 parent 3a9e57d commit 7bb0c85

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

crates/ev-precompiles/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ The precompile is deployed at a reserved address in the precompile address space
2222

2323
```solidity
2424
interface 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

crates/ev-precompiles/src/mint.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ use std::sync::OnceLock;
1212

1313
sol! {
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

docs/adr/ADR-0002-native-minting-precompile.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ We will implement a custom precompile for native token minting. The precompile w
4545

4646
```solidity
4747
interface 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

0 commit comments

Comments
 (0)