(utxo: Utxo, changeLocks: Record<string, boolean>)
| 53 | |
| 54 | // ////////// PARAMETER VALIDATION //////////////////////////////////////////// |
| 55 | export 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 | |
| 63 | export function validateOutput(output: Output, network: Network, changeLocks: Record<string, boolean>): void { |
| 64 | validateChangeLocks(changeLocks, output.token?.category); |
no test coverage detected