Skip to content

Commit

Permalink
Refactor magic constant in TimelocController test (#3397)
Browse files Browse the repository at this point in the history
  • Loading branch information
onlineSoftwareDevOK committed May 12, 2022
1 parent e633ee9 commit cd2da98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/governance/TimelockController.test.js
Expand Up @@ -15,6 +15,8 @@ const ERC1155Mock = artifacts.require('ERC1155Mock');

const MINDELAY = time.duration.days(1);

const salt = '0x025e7b0be353a74631ad648c667493c0e1cd31caa4cc2d3520fdc171ea0cc726'; // a random value

function genOperation (target, value, data, predecessor, salt) {
const id = web3.utils.keccak256(web3.eth.abi.encodeParameters([
'address',
Expand Down Expand Up @@ -144,7 +146,7 @@ contract('TimelockController', function (accounts) {
0,
'0x3bf92ccc',
ZERO_BYTES32,
'0x025e7b0be353a74631ad648c667493c0e1cd31caa4cc2d3520fdc171ea0cc726',
salt,
);
});

Expand Down

0 comments on commit cd2da98

Please sign in to comment.