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

Function assert

js/src/static_dependencies/ethers/utils/errors.js:139–143  ·  view source on GitHub ↗
(check, message, code, info)

Source from the content-addressed store, hash-verified

137 * @see [[api:makeError]]
138 */
139export function assert(check, message, code, info) {
140 if (!check) {
141 throw makeError(message, code, info);
142 }
143}
144/**
145 * A simple helper to simply ensuring provided arguments match expected
146 * constraints, throwing if not.

Callers 15

fromMethod · 0.90
formatMethod · 0.90
decodeFunctionResultMethod · 0.90
encodeFilterTopicsMethod · 0.90
dataSliceFunction · 0.90
zeroPadFunction · 0.90
fromTwosFunction · 0.90
toTwosFunction · 0.90
getUintFunction · 0.90
toBeHexFunction · 0.90
checkValueFunction · 0.90
mulSignalMethod · 0.90

Calls 1

makeErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…