We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e622db3 commit 624c6b2Copy full SHA for 624c6b2
javascript/engine-js/src/tokenScript/Contract.ts
@@ -35,8 +35,11 @@ export class Contract {
35
if (abiXml.length){
36
try {
37
this.abi = JSON.parse(abiXml[0].innerHTML);
38
+ if (!Array.isArray(this.abi))
39
+ throw new Error("ABI is not a valid ABI");
40
} catch (e){
41
console.warn("Failed to parse contract ABI", e);
42
+ this.abi = [];
43
}
44
45
0 commit comments