Commit 586831e3 authored by isstuev's avatar isstuev

fix erc404 transfer type

parent 3e0f6e67
......@@ -208,6 +208,7 @@ export const erc404A: TokenTransfer = {
total: {
value: '42000000000000000000000000',
decimals: '18',
token_id: null,
},
tx_hash: '0x05d6589367633c032d757a69c5fb16c0e33e3994b0d9d1483f82aeee1f05d746',
type: 'token_transfer',
......
......@@ -17,10 +17,11 @@ export type Erc1155TotalPayload = {
}
export type Erc404TotalPayload = {
decimals: string | null;
value: string | null;
decimals: string;
value: string;
token_id: null;
} | {
token_id: string | null;
token_id: string;
};
export type TokenTransfer = (
......
......@@ -53,7 +53,7 @@ const TxDetailsTokenTransfer = ({ data }: Props) => {
case 'ERC-404': {
const total = data.total as Erc404TotalPayload;
if ('token_id' in total) {
if (total.token_id !== null) {
return (
<NftTokenTransferSnippet
token={ data.token }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment