Commit 9cae52c5 by Francisco Giordano

Use abi.encodePacked instead of bytes.concat

(cherry picked from commit 1051db38)
parent 93d2d150
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment