Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Apr 2, 2024
1 parent f91d7a8 commit 3d66d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/rgbpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ 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
const LOCK_SCRIPT_END = 2 + LOCK_SCRIPT_LEN
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)

Expand Down

0 comments on commit 3d66d73

Please sign in to comment.