git.delta.rocks / unique-network / refs/commits / dd2a57fee382

difftreelog

fixup tests

Yaroslav Bolyukin2022-01-26parent: #a11cc83.patch.diff
in: master

3 files changed

modifiedtests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth
67 const alice = privateKey('//Alice');67 const alice = privateKey('//Alice');
6868
69 const owner = await createEthAccountWithBalance(api, web3);69 const owner = await createEthAccountWithBalance(api, web3);
70 const caller = await createEthAccount(api);70 const caller = createEthAccount(web3);
7171
72 const flipper = await deployFlipper(web3, owner);72 const flipper = await deployFlipper(web3, owner);
7373
97 const alice = privateKey('//Alice');97 const alice = privateKey('//Alice');
9898
99 const owner = await createEthAccountWithBalance(api, web3);99 const owner = await createEthAccountWithBalance(api, web3);
100 const caller = await createEthAccount(api);100 const caller = createEthAccount(web3);
101101
102 const flipper = await deployFlipper(web3, owner);102 const flipper = await deployFlipper(web3, owner);
103103
modifiedtests/src/eth/util/contractHelpersAbi.jsondiffbeforeafterboth
--- a/tests/src/eth/util/contractHelpersAbi.json
+++ b/tests/src/eth/util/contractHelpersAbi.json
@@ -147,6 +147,43 @@
                 "type": "address"
             },
             {
+                "internalType": "uint8",
+                "name": "mode",
+                "type": "uint8"
+            }
+        ],
+        "name": "setSponsoringMode",
+        "outputs": [],
+        "stateMutability": "nonpayable",
+        "type": "function"
+    },
+    {
+        "inputs": [
+            {
+                "internalType": "address",
+                "name": "target",
+                "type": "address"
+            }
+        ],
+        "name": "sponsoringMode",
+        "outputs": [
+            {
+                "internalType": "uint8",
+                "name": "",
+                "type": "uint8"
+            }
+        ],
+        "stateMutability": "nonpayable",
+        "type": "function"
+    },
+    {
+        "inputs": [
+            {
+                "internalType": "address",
+                "name": "target",
+                "type": "address"
+            },
+            {
                 "internalType": "uint32",
                 "name": "limit",
                 "type": "uint32"
@@ -176,4 +213,4 @@
         "stateMutability": "view",
         "type": "function"
     }
-]
\ No newline at end of file
+]
modifiedtests/src/eth/util/helpers.tsdiffbeforeafterboth
--- a/tests/src/eth/util/helpers.ts
+++ b/tests/src/eth/util/helpers.ts
@@ -22,9 +22,9 @@
 export const GAS_ARGS = {gas: 2500000};
 
 export enum SponsoringMode {
-  Disabled,
-  Allowlisted,
-  Generous,
+  Disabled = 0,
+  Allowlisted = 1,
+  Generous = 2,
 }
 
 let web3Connected = false;