From 3dabf97600c077e345de7f5f4d87fb2e77b4e8dd Mon Sep 17 00:00:00 2001 From: imsk17 Date: Mon, 21 Oct 2024 14:57:23 +0530 Subject: [PATCH] fix(near): modify claim data to match structure --- src/handlers/near/index.ts | 2 +- src/handlers/near/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/near/index.ts b/src/handlers/near/index.ts index 79a99fd4..5585631a 100644 --- a/src/handlers/near/index.ts +++ b/src/handlers/near/index.ts @@ -133,7 +133,7 @@ export async function nearHandler({ source_chain: input.sourceChain, source_nft_contract_address: input.sourceNftContractAddress, symbol: input.symbol, - token_amount: BigInt(input.tokenAmount), + token_amount: Number(input.tokenAmount), token_id: input.tokenId, transaction_hash: input.transactionHash, lock_tx_chain: input.lockTxChain, diff --git a/src/handlers/near/types.ts b/src/handlers/near/types.ts index 0f12a33f..2dde207a 100644 --- a/src/handlers/near/types.ts +++ b/src/handlers/near/types.ts @@ -21,7 +21,7 @@ export type TNearClaimArgs = { royalty_receiver: string; metadata: string; transaction_hash: string; - token_amount: bigint; + token_amount: number; nft_type: string; fee: string; lock_tx_chain: string;