Commit 02e7c271 authored by isstuev's avatar isstuev

tests

parent cba7470a
...@@ -163,6 +163,10 @@ base('long values', async({ mount, page }) => { ...@@ -163,6 +163,10 @@ base('long values', async({ mount, page }) => {
status: 200, status: 200,
body: JSON.stringify({ items: [ tokensMock.erc1155LongId ] }), body: JSON.stringify({ items: [ tokensMock.erc1155LongId ] }),
}), { times: 1 }); }), { times: 1 });
await page.route(TOKENS_ER404_API_URL, async(route) => route.fulfill({
status: 200,
body: JSON.stringify(tokensMock.erc404List),
}), { times: 1 });
await mount( await mount(
<TestApp> <TestApp>
......
...@@ -75,7 +75,10 @@ const TxDetailsTokenTransfer = ({ data }: Props) => { ...@@ -75,7 +75,10 @@ const TxDetailsTokenTransfer = ({ data }: Props) => {
<NftTokenTransferSnippet <NftTokenTransferSnippet
token={ data.token } token={ data.token }
tokenId={ 'token_id' in total ? total.token_id : null } tokenId={ 'token_id' in total ? total.token_id : null }
value={ 'value' in total ? total.value || '1' : '1' } value={ 'value' in total && total.value ?
getCurrencyValue({ value: total.value, decimals: total.decimals || '0', accuracy: 2 }).valueStr :
'1'
}
/> />
); );
} }
......
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