MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / formatJson

Method formatJson

lib.commonjs/abi/interface.js:331–335  ·  view source on GitHub ↗

* Return the JSON-encoded ABI. This is the format Solidiy * returns.

()

Source from the content-addressed store, hash-verified

329 * returns.
330 */
331 formatJson() {
332 const abi = this.fragments.map((f) => f.format("json"));
333 // We need to re-bundle the JSON fragments a bit
334 return JSON.stringify(abi.map((j) => JSON.parse(j)));
335 }
336 /**
337 * The ABI coder that will be used to encode and decode binary
338 * data.

Callers 1

fromMethod · 0.45

Calls 2

mapMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected