sdk/js: replace bigint literal

This commit is contained in:
heyitaki 2023-02-08 15:23:08 +00:00 committed by Evan Gray
parent 0e8f8fa771
commit e0bebed306
1 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ describe("Aptos NFT SDK tests", () => {
APTOS_NFT_BRIDGE_ADDRESS, APTOS_NFT_BRIDGE_ADDRESS,
CHAIN_ID_ETH, CHAIN_ID_ETH,
tryNativeToUint8Array(ethNft.address, CHAIN_ID_ETH), tryNativeToUint8Array(ethNft.address, CHAIN_ID_ETH),
10n BigInt(10)
); );
assertIsNotNull(tokenId); assertIsNotNull(tokenId);
expect( expect(
@ -489,14 +489,14 @@ describe("Aptos NFT SDK tests", () => {
APTOS_NFT_BRIDGE_ADDRESS, APTOS_NFT_BRIDGE_ADDRESS,
CHAIN_ID_ETH, CHAIN_ID_ETH,
tryNativeToUint8Array(ethNfts.address, CHAIN_ID_ETH), tryNativeToUint8Array(ethNfts.address, CHAIN_ID_ETH),
0n BigInt(0)
); );
const tokenId2 = await getForeignAssetAptos( const tokenId2 = await getForeignAssetAptos(
aptosClient, aptosClient,
APTOS_NFT_BRIDGE_ADDRESS, APTOS_NFT_BRIDGE_ADDRESS,
CHAIN_ID_ETH, CHAIN_ID_ETH,
tryNativeToUint8Array(ethNfts.address, CHAIN_ID_ETH), tryNativeToUint8Array(ethNfts.address, CHAIN_ID_ETH),
1n BigInt(1)
); );
assertIsNotNull(tokenId1); assertIsNotNull(tokenId1);
assertIsNotNull(tokenId2); assertIsNotNull(tokenId2);