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 45b9b9c commit 4d2d90fCopy full SHA for 4d2d90f
src.ts/abi/interface.ts
@@ -1255,7 +1255,12 @@ export class Interface {
1255
// JSON
1256
if (typeof(value) === "string") { return new Interface(JSON.parse(value)); }
1257
1258
- // Maybe an interface from an older version, or from a symlinked copy
+ // An Interface; possibly from another v6 instance
1259
+ if (typeof((<any>value).formatJson) === "function") {
1260
+ return new Interface((<any>value).formatJson());
1261
+ }
1262
+
1263
+ // A legacy Interface; from an older version
1264
if (typeof((<any>value).format) === "function") {
1265
return new Interface((<any>value).format("json"));
1266
}
0 commit comments