Skip to content

Commit

Permalink
Fix a bit more slither issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov committed Dec 11, 2024
1 parent a43d2cf commit a573f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions l1-contracts/contracts/governance/ChainAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ contract ChainAdmin is IChainAdmin, Ownable2Step {
emit UpdateUpgradeTimestamp(_protocolVersion, _upgradeTimestamp);
}

function enableEvmEmulator(IAdmin _chainContract) external onlyOwner {
_chainContract.allowEvmEmulation();
/// @notice Enable EVM emulation on chain.
/// @param _chainContract The chain contract address where the EVM emulator will be enabled.
function enableEvmEmulator(IAdmin _chainContract) external onlyOwner returns (bytes32 canonicalTxHash) {
canonicalTxHash = _chainContract.allowEvmEmulation();
}

/// @notice Execute multiple calls as part of contract administration.
Expand Down
2 changes: 1 addition & 1 deletion l1-contracts/contracts/governance/IChainAdmin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ interface IChainAdmin {

function setTokenMultiplier(IAdmin _chainContract, uint128 _nominator, uint128 _denominator) external;

function enableEvmEmulator(IAdmin _chainContract) external;
function enableEvmEmulator(IAdmin _chainContract) external returns (bytes32 canonicalTxHash);
}

0 comments on commit a573f95

Please sign in to comment.