From: Chris Duncan Date: Thu, 7 Aug 2025 19:49:17 +0000 (-0700) Subject: Fix default amount units. X-Git-Tag: v0.10.5~43^2~51 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=07b1b1882a85b2dc0032fb430671f2ccfcd14bbf;p=libnemo.git Fix default amount units. --- 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') }