From d573f91adccbae86b63ec3bc0d97abe43eae9671 Mon Sep 17 00:00:00 2001 From: StefanIliev545 Date: Mon, 20 May 2024 12:47:13 +0300 Subject: [PATCH] Renamed function. --- contracts/src/messaging/IMerkleTreeMessageBus.sol | 2 +- contracts/src/messaging/MerkleTreeMessageBus.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/messaging/IMerkleTreeMessageBus.sol b/contracts/src/messaging/IMerkleTreeMessageBus.sol index eeaf8d6a81..786c2b5cea 100644 --- a/contracts/src/messaging/IMerkleTreeMessageBus.sol +++ b/contracts/src/messaging/IMerkleTreeMessageBus.sol @@ -7,7 +7,7 @@ interface IMerkleTreeMessageBus { // This function is called to add a cross chain state root to the message bus. function addStateRoot(bytes32 stateRoot, uint256 activationTime) external; // This function disables a cross chain state root from the message bus. On challenge - function blockStateRoot(bytes32 stateRoot) external; + function disableStateRoot(bytes32 stateRoot) external; // This function verifies that a cross chain message is included in the state root. // message - the message to verify // proof - merkle tree proof for the said message against root diff --git a/contracts/src/messaging/MerkleTreeMessageBus.sol b/contracts/src/messaging/MerkleTreeMessageBus.sol index f3f8b1682b..cb9c92ba6d 100644 --- a/contracts/src/messaging/MerkleTreeMessageBus.sol +++ b/contracts/src/messaging/MerkleTreeMessageBus.sol @@ -18,7 +18,7 @@ contract MerkleTreeMessageBus is IMerkleTreeMessageBus, MessageBus { rootValidAfter[stateRoot] = activationTime; } - function blockStateRoot(bytes32 stateRoot) external onlyOwner { + function disableStateRoot(bytes32 stateRoot) external onlyOwner { require(rootValidAfter[stateRoot] != 0, "State root does not exist."); rootValidAfter[stateRoot] = 0; }