ethereum: remove state variable
This commit is contained in:
parent
3c631db55f
commit
504b4c0012
|
@ -8,10 +8,6 @@ import "../interfaces/IWormhole.sol";
|
|||
import "./GasOracleState.sol";
|
||||
|
||||
contract GasOracleGetters is GasOracleState {
|
||||
function isInitialized(address implementation) public view returns (bool) {
|
||||
return _state.initializedImplementations[implementation];
|
||||
}
|
||||
|
||||
function wormhole() public view returns (IWormhole) {
|
||||
return IWormhole(_state.provider.wormhole);
|
||||
}
|
||||
|
|
|
@ -8,10 +8,6 @@ import "@openzeppelin/contracts/utils/Context.sol";
|
|||
import "./GasOracleState.sol";
|
||||
|
||||
contract GasOracleSetters is Context, GasOracleState {
|
||||
function setInitialized(address implementation) internal {
|
||||
_state.initializedImplementations[implementation] = true;
|
||||
}
|
||||
|
||||
function setChainId(uint16 oracleChainId) internal {
|
||||
_state.provider.chainId = oracleChainId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue