Skip to content

Commit

Permalink
fix timelockSalt
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Jul 12, 2023
1 parent 4d21d32 commit 225c6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/governance/extensions/GovernorTimelockControl.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ contract('GovernorTimelockControl', function (accounts) {
for (const { mode, Token } of TOKENS) {
describe(`using ${Token._json.contractName}`, function () {
const timelockSalt = (address, descriptionHash) =>
web3.utils.numberToHex(web3.utils.toBN(address).shln(96).xor(web3.utils.toBN(descriptionHash)));
'0x' + web3.utils.toBN(address).shln(96).xor(web3.utils.toBN(descriptionHash)).toString(16, 64);

beforeEach(async function () {
const [deployer] = await web3.eth.getAccounts();
Expand Down

0 comments on commit 225c6ec

Please sign in to comment.