MCPcopy Create free account
hub / github.com/CashScript/cashscript / validateInput

Function validateInput

packages/cashscript/src/utils.ts:55–61  ·  view source on GitHub ↗
(utxo: Utxo, changeLocks: Record<string, boolean>)

Source from the content-addressed store, hash-verified

53
54// ////////// PARAMETER VALIDATION ////////////////////////////////////////////
55export function validateInput(utxo: Utxo, changeLocks: Record<string, boolean>): void {
56 if (!utxo) {
57 throw new UndefinedInputError();
58 }
59
60 validateChangeLocks(changeLocks, utxo.token?.category);
61}
62
63export function validateOutput(output: Output, network: Network, changeLocks: Record<string, boolean>): void {
64 validateChangeLocks(changeLocks, output.token?.category);

Callers 1

addInputsMethod · 0.85

Calls 1

validateChangeLocksFunction · 0.85

Tested by

no test coverage detected