You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/constants.json
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,9 @@
41
41
"testnet": 3,
42
42
"ropsten": 3,
43
43
"rinkeby": 4
44
-
}
44
+
},
45
+
"gasAllowanceError": "Returned error: gas required exceeds allowance or always failing transaction",
46
+
"gasAllowanceErrorMessage": "Failing call, this could be because of invalid inputs or function guards that may have been triggered, or an unknown error."
Copy file name to clipboardExpand all lines: src/lib/modules/contracts_manager/index.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -124,8 +124,8 @@ class ContractsManager {
124
124
res.send({result});
125
125
});
126
126
}catch(e){
127
-
if(funcCall==='call'&&e.message==='Returned error: gas required exceeds allowance or always failing transaction'){
128
-
returnres.send({result: 'Failing call, this could be because of invalid inputs or function guards that may have been triggered, or an unknown error.'});
0 commit comments