* Return the JSON-encoded ABI. This is the format Solidiy * returns.
()
| 232 | * returns. |
| 233 | */ |
| 234 | formatJson() { |
| 235 | const abi = this.fragments.map((f) => f.format("json")); |
| 236 | // We need to re-bundle the JSON fragments a bit |
| 237 | return JSON.stringify(abi.map((j) => JSON.parse(j))); |
| 238 | } |
| 239 | /** |
| 240 | * The ABI coder that will be used to encode and decode binary |
| 241 | * data. |