Created
March 4, 2021 14:55
-
-
Save gitpusha/179c1ce6a652525559ae106ea3893919 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity 0.8.0; | |
contract MockGelatoGasPriceOracle { | |
uint256 public gasPrice; | |
constructor(uint256 _gasPrice) { | |
gasPrice = _gasPrice; | |
} | |
function setGasPrice(uint256 _newGasPrice) external { | |
gasPrice = _newGasPrice; | |
} | |
function latestAnswer() external view returns (int256) { | |
return int256(gasPrice); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment