* Return the JSON-encoded ABI. This is the format Solidiy * returns.
()
| 431 | * returns. |
| 432 | */ |
| 433 | formatJson(): string { |
| 434 | const abi = this.fragments.map((f) => f.format("json")); |
| 435 | |
| 436 | // We need to re-bundle the JSON fragments a bit |
| 437 | return JSON.stringify(abi.map((j) => JSON.parse(j))); |
| 438 | } |
| 439 | |
| 440 | /** |
| 441 | * The ABI coder that will be used to encode and decode binary |