From 14f1bdbc5028ea250cbd307c150d0c90d478bc42 Mon Sep 17 00:00:00 2001 From: floor-licker Date: Thu, 5 Dec 2024 09:54:01 -0500 Subject: [PATCH] Update bridge function in IOptimismMintableERC20.sol `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. --- src/hardhat/contracts/ERC20/IOptimismMintableERC20.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardhat/contracts/ERC20/IOptimismMintableERC20.sol b/src/hardhat/contracts/ERC20/IOptimismMintableERC20.sol index 17314233..4d2be238 100644 --- a/src/hardhat/contracts/ERC20/IOptimismMintableERC20.sol +++ b/src/hardhat/contracts/ERC20/IOptimismMintableERC20.sol @@ -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; @@ -28,4 +28,4 @@ interface ILegacyMintableERC20 is IERC165 { function mint(address _to, uint256 _amount) external; function burn(address _from, uint256 _amount) external; -} \ No newline at end of file +}