From a573f95ba291c0a349167d0a779087127429d1c7 Mon Sep 17 00:00:00 2001 From: Vladislav Volosnikov Date: Wed, 11 Dec 2024 18:40:24 +0100 Subject: [PATCH] Fix a bit more slither issues --- l1-contracts/contracts/governance/ChainAdmin.sol | 6 ++++-- l1-contracts/contracts/governance/IChainAdmin.sol | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/l1-contracts/contracts/governance/ChainAdmin.sol b/l1-contracts/contracts/governance/ChainAdmin.sol index b27cd4a3e..31220c938 100644 --- a/l1-contracts/contracts/governance/ChainAdmin.sol +++ b/l1-contracts/contracts/governance/ChainAdmin.sol @@ -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. diff --git a/l1-contracts/contracts/governance/IChainAdmin.sol b/l1-contracts/contracts/governance/IChainAdmin.sol index dda0c47c5..f5c4bba57 100644 --- a/l1-contracts/contracts/governance/IChainAdmin.sol +++ b/l1-contracts/contracts/governance/IChainAdmin.sol @@ -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); }