MCPcopy Create free account
hub / github.com/NoteProtocol/NoteWallet / assert

Function assert

src/utils.ts:44–48  ·  view source on GitHub ↗
(arg0: boolean, arg1?: string)

Source from the content-addressed store, hash-verified

42}
43
44export function assert(arg0: boolean, arg1?: string) {
45 if (!arg0) {
46 throw new Error(arg1 ?? `An assert was raised`);
47 }
48}
49
50/**
51 * bigint can be converted to string with int2ByteString.

Callers 1

createP2TRCommitDataPsbtFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected