Skip to content

Commit

Permalink
Use abi.encodePacked instead of bytes.concat
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jan 11, 2022
1 parent a8f35b6 commit 1051db3
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 1051db3

Please sign in to comment.