From 07b1b1882a85b2dc0032fb430671f2ccfcd14bbf Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 7 Aug 2025 12:49:17 -0700 Subject: [PATCH] Fix default amount units. --- src/lib/block.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/block.ts b/src/lib/block.ts index 7ac1bc0..1900d21 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -295,7 +295,7 @@ export class Block { } this.subtype = 'receive' - unit ??= UNITS.RAW + unit ??= 'RAW' if (typeof unit !== 'string' || typeof UNITS[unit] !== 'number') { throw new TypeError('Invalid unit') } @@ -338,7 +338,7 @@ export class Block { } this.subtype = 'send' - unit ??= UNITS.RAW + unit ??= 'RAW' if (typeof unit !== 'string' || typeof UNITS[unit] !== 'number') { throw new TypeError('Invalid unit') } -- 2.47.3