Skip to content

Commit

Permalink
fix(upgradeable_contracts): adds missing abi.encodePacked
Browse files Browse the repository at this point in the history
  • Loading branch information
allemanfredi committed Jun 13, 2024
1 parent db06a74 commit b1cec49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/upgradeable_contracts/BasicBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ contract BasicBridge is
chainId == manager.targetChainId() &&
sender == manager.targetAddress() &&
threshold == manager.expectedThreshold() &&
keccak256(adapters) == manager.expectedAdaptersHash()
keccak256(abi.encodePacked(adapters)) == manager.expectedAdaptersHash()
);
}
}
2 changes: 1 addition & 1 deletion contracts/upgradeable_contracts/HashiManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ contract HashiManager is InitializableBridge, Ownable {
}

function setExpectedAdaptersHash(address[] adapters_) external onlyOwner {
uintStorage[EXPECTED_ADAPTERS_HASH] = uint256(keccak256(adapters_));
uintStorage[EXPECTED_ADAPTERS_HASH] = uint256(keccak256(abi.encodePacked(adapters_)));
}

function expectedThreshold() external view returns (uint256) {
Expand Down

0 comments on commit b1cec49

Please sign in to comment.