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

Function getValue

js/src/static_dependencies/ethers/coders/abstract-coder.js:263–270  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

261 return errors;
262}
263function getValue(value) {
264 let bytes = toBeArray(value);
265 assert(bytes.length <= WordSize, "value out-of-bounds", "BUFFER_OVERRUN", { buffer: bytes, length: WordSize, offset: bytes.length });
266 if (bytes.length !== WordSize) {
267 bytes = getBytesCopy(concat([Padding.slice(bytes.length % WordSize), bytes]));
268 }
269 return bytes;
270}
271/**
272 * @_ignore
273 */

Callers 2

writeValueMethod · 0.70
writeUpdatableValueMethod · 0.70

Calls 5

toBeArrayFunction · 0.90
assertFunction · 0.90
getBytesCopyFunction · 0.90
concatFunction · 0.90
sliceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…