Skip to content

Commit

Permalink
Use bytes cast instead of abi.encodePacked
Browse files Browse the repository at this point in the history
  • Loading branch information
trianglesphere committed May 24, 2024
1 parent 2d71169 commit ba55aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts-bedrock/scripts/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ contract Deploy is Deployer {
setupSuperchain();
console.log("set up superchain!");
if (cfg.usePlasma()) {
bytes32 typeHash = keccak256(abi.encodePacked(cfg.daCommitmentType()));
bytes32 keccakHash = keccak256(abi.encodePacked("KeccakCommitment"));
bytes32 typeHash = keccak256(bytes(cfg.daCommitmentType()));
bytes32 keccakHash = keccak256(bytes("KeccakCommitment"));
if (typeHash == keccakHash) {
setupOpPlasma();
}
Expand Down

0 comments on commit ba55aad

Please sign in to comment.