ソースを参照

Refactor magic constant in TimelocController test (#3397)

onlineSoftwareDevOK 3 年 前
コミット
cd2da98d4d
1 ファイル変更3 行追加1 行削除
  1. 3 1
      test/governance/TimelockController.test.js

+ 3 - 1
test/governance/TimelockController.test.js

@@ -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',
@@ -144,7 +146,7 @@ contract('TimelockController', function (accounts) {
             0,
             '0x3bf92ccc',
             ZERO_BYTES32,
-            '0x025e7b0be353a74631ad648c667493c0e1cd31caa4cc2d3520fdc171ea0cc726',
+            salt,
           );
         });