Skip to content

Commit

Permalink
use BigInt to parse hex strings (irfanbozkurt#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
escottalexander authored Feb 2, 2024
1 parent fbf994c commit 8653d4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export const useAutodetectAssets = () => {

const result: NftMetadataBatchToken[] = ownedTokenIds.map(tokenId => ({
contractAddress: erc721contract as `0x${string}`,
tokenId: parseInt(tokenId).toString(),
tokenId: BigInt(tokenId).toString(),
tokenType: NftTokenType.ERC721,
}));
erc721Minimal.push(...result);
Expand All @@ -312,7 +312,7 @@ export const useAutodetectAssets = () => {
type: "erc721",
info: `ERC721 - ${tokenSymbol != "???" ? `${tokenSymbol}` : `${erc721contract}`}`,
symbol: tokenSymbol,
tokenId: parseInt(tokenId).toString(),
tokenId: BigInt(tokenId).toString(),
toEstimate: {
from: hackedAddress as `0x${string}`,
to: erc721contract as `0x${string}`,
Expand Down

0 comments on commit 8653d4d

Please sign in to comment.