MCPcopy Create free account
hub / github.com/ccxt/ccxt / encode

Method encode

js/src/static_dependencies/ethers/coders/null.js:13–18  ·  view source on GitHub ↗
(writer, value)

Source from the content-addressed store, hash-verified

11 return null;
12 }
13 encode(writer, value) {
14 if (value != null) {
15 this._throwError("not null", value);
16 }
17 return writer.writeBytes(Empty);
18 }
19 decode(reader) {
20 reader.readBytes(0);
21 return null;

Callers

nothing calls this directly

Calls 2

_throwErrorMethod · 0.80
writeBytesMethod · 0.45

Tested by

no test coverage detected