(changeLocks: Record<string, boolean>, category?: string)
| 110 | } |
| 111 | |
| 112 | function validateChangeLocks(changeLocks: Record<string, boolean>, category?: string): void { |
| 113 | if (changeLocks.BCH) { |
| 114 | throw new OutputBchChangeLockedError(); |
| 115 | } |
| 116 | |
| 117 | if (category && changeLocks[category]) { |
| 118 | throw new OutputTokenChangeLockedError(category); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | export function isOpReturnOutput(output: Output): output is Output & { to: Uint8Array } { |
| 123 | return typeof output.to !== 'string' && output.to[0] === Op.OP_RETURN; |
no outgoing calls
no test coverage detected