Skip to content

Commit

Permalink
refactor(upgradeable_contracts): adds prefix to data sent with hashi …
Browse files Browse the repository at this point in the history
…written in storage
  • Loading branch information
allemanfredi committed Jun 24, 2024
1 parent 11d50e4 commit 14e330e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/upgradeable_contracts/BasicBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ contract BasicBridge is
}

function resendDataWithHashi(bytes data) external {
require(boolStorage[keccak256(data)]);
require(boolStorage[keccak256(abi.encodePacked("dataSentWithHashi", data))]);
_dispatchMessageWithHashi(data);
}

function _maybeSendDataWithHashi(bytes data) internal {
if (HASHI_IS_ENABLED) {
boolStorage[keccak256(data)] = true;
boolStorage[keccak256(abi.encodePacked("dataSentWithHashi", data))] = true;
_dispatchMessageWithHashi(data);
}
}
Expand Down

0 comments on commit 14e330e

Please sign in to comment.