Skip to content

Commit

Permalink
Update bridge function in IOptimismMintableERC20.sol
Browse files Browse the repository at this point in the history
`bridge()` function is currently only set to  `external`, can also be set to `view` for gas optimization and for clarity that the function is read-only.
  • Loading branch information
floor-licker authored Dec 5, 2024
1 parent 90e2be8 commit 14f1bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hardhat/contracts/ERC20/IOptimismMintableERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol
interface IOptimismMintableERC20 is IERC165 {
function remoteToken() external view returns (address);

function bridge() external returns (address);
function bridge() external view returns (address);

function mint(address _to, uint256 _amount) external;

Expand All @@ -28,4 +28,4 @@ interface ILegacyMintableERC20 is IERC165 {
function mint(address _to, uint256 _amount) external;

function burn(address _from, uint256 _amount) external;
}
}

0 comments on commit 14f1bdb

Please sign in to comment.