Skip to content

Commit

Permalink
refactor(upgradeable_contracts): rn msgId into msgHash within isAppro…
Browse files Browse the repository at this point in the history
…vedByHashi & _setHashiApprovalForMessage
  • Loading branch information
allemanfredi committed Jun 20, 2024
1 parent ca2a706 commit 11d50e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/upgradeable_contracts/BasicBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ contract BasicBridge is
bool public constant HASHI_IS_ENABLED = true;
bool public constant HASHI_IS_MANDATORY = false;

function isApprovedByHashi(bytes32 msgId) public view returns (bool) {
return boolStorage[keccak256(abi.encodePacked("messagesApprovedByHashi", msgId))];
function isApprovedByHashi(bytes32 hashMsg) public view returns (bool) {
return boolStorage[keccak256(abi.encodePacked("messagesApprovedByHashi", hashMsg))];
}

/**
Expand Down Expand Up @@ -76,8 +76,8 @@ contract BasicBridge is
emit GasPriceChanged(_gasPrice);
}

function _setHashiApprovalForMessage(bytes32 msgId, bool status) internal {
boolStorage[keccak256(abi.encodePacked("messagesApprovedByHashi", msgId))] = status;
function _setHashiApprovalForMessage(bytes32 hashMsg, bool status) internal {
boolStorage[keccak256(abi.encodePacked("messagesApprovedByHashi", hashMsg))] = status;
}

function resendDataWithHashi(bytes data) external {
Expand Down

0 comments on commit 11d50e4

Please sign in to comment.