Skip to content

Commit

Permalink
contracts-bedrock: update OptimismPortal
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfuturistic committed May 20, 2024
1 parent c880408 commit 19b2452
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/contracts-bedrock/src/L1/OptimismPortal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ contract OptimismPortal is Initializable, ResourceMetering, ISemver {
}

/// @notice Semantic version.
/// @custom:semver 2.8.0
string public constant version = "2.8.0";
/// @custom:semver 2.9.0
function version() public pure virtual returns (string memory) {
return "2.9.0";
}

/// @notice Constructs the OptimismPortal contract.
constructor() {
Expand Down Expand Up @@ -558,7 +560,7 @@ contract OptimismPortal is Initializable, ResourceMetering, ISemver {

/// @notice Sets the gas paying token for the L2 system. This token is used as the
/// L2 native asset. Only the SystemConfig contract can call this function.
function setGasPayingToken(address _token, uint8 _decimals, bytes32 _name, bytes32 _symbol) external {
function setGasPayingToken(address _token, uint8 _decimals, bytes32 _name, bytes32 _symbol) external virtual {
if (msg.sender != address(systemConfig)) revert Unauthorized();

// Set L2 deposit gas as used without paying burning gas. Ensures that deposits cannot use too much L2 gas.
Expand Down

0 comments on commit 19b2452

Please sign in to comment.