Skip to content

Commit

Permalink
Renamed function.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed May 20, 2024
1 parent add1072 commit d573f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/src/messaging/IMerkleTreeMessageBus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/messaging/MerkleTreeMessageBus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d573f91

Please sign in to comment.