difftreelog
fixup tests
in: master
3 files changed
tests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth67 const alice = privateKey('//Alice');67 const alice = privateKey('//Alice');686869 const owner = await createEthAccountWithBalance(api, web3);69 const owner = await createEthAccountWithBalance(api, web3);70 const caller = await createEthAccount(api);70 const caller = createEthAccount(web3);717172 const flipper = await deployFlipper(web3, owner);72 const flipper = await deployFlipper(web3, owner);737397 const alice = privateKey('//Alice');97 const alice = privateKey('//Alice');989899 const owner = await createEthAccountWithBalance(api, web3);99 const owner = await createEthAccountWithBalance(api, web3);100 const caller = await createEthAccount(api);100 const caller = createEthAccount(web3);101101102 const flipper = await deployFlipper(web3, owner);102 const flipper = await deployFlipper(web3, owner);103103tests/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
+]
tests/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;