Skip to content

Commit

Permalink
Use abi.encodePacked instead of bytes.concat
Browse files Browse the repository at this point in the history
(cherry picked from commit 1051db3)
  • Loading branch information
frangio committed Jan 11, 2022
1 parent 93d2d15 commit 9cae52c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ abstract contract GovernorCompatibilityBravo is IGovernorTimelock, IGovernorComp
for (uint256 i = 0; i < signatures.length; ++i) {
fullcalldatas[i] = bytes(signatures[i]).length == 0
? calldatas[i]
: bytes.concat(bytes4(keccak256(bytes(signatures[i]))), calldatas[i]);
: abi.encodePacked(bytes4(keccak256(bytes(signatures[i]))), calldatas[i]);
}

return fullcalldatas;
Expand Down

0 comments on commit 9cae52c

Please sign in to comment.