From 3d66d733179000b61919b57088dbb13c17df5750 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 2 Apr 2024 12:23:57 +0900 Subject: [PATCH] fix: fix typo --- src/utils/rgbpp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/rgbpp.ts b/src/utils/rgbpp.ts index 1f6e7f2d9..98c72a6b8 100644 --- a/src/utils/rgbpp.ts +++ b/src/utils/rgbpp.ts @@ -3,7 +3,7 @@ import { blockchain } from '@ckb-lumos/base' export const parseBtcTimeLockArgs = (args: string) => { // btc time lock: https://github.com/ckb-cell/RGBPlusPlus-design/blob/main/docs/locscript-design-prd-cn.md#btc_time_lock - const OFFET_END = 8 * 4 + const OFFSET_END = 8 * 4 const LOCK_SCRIPT_LEN = 178 const AFTER_LEN = 8 const TXID_LEN = 64 @@ -11,7 +11,7 @@ export const parseBtcTimeLockArgs = (args: string) => { const AFTER_END = LOCK_SCRIPT_END + AFTER_LEN const TXID_END = AFTER_END + TXID_LEN - const script = args.slice(2 + OFFET_END, LOCK_SCRIPT_END) + const script = args.slice(2 + OFFSET_END, LOCK_SCRIPT_END) const after = args.slice(LOCK_SCRIPT_END, AFTER_END) const btcTx = args.slice(AFTER_END, TXID_END)