Commit 3b49f1d1 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Tx logs: "Contract must be verified" message shown for the already ve… (#1286)

Tx logs: "Contract must be verified" message shown for the already verified contract in Tx logs

Fixes #1268
parent 9c51fb4b
...@@ -21,7 +21,7 @@ test('with decoded input data +@mobile +@dark-mode', async({ mount }) => { ...@@ -21,7 +21,7 @@ test('with decoded input data +@mobile +@dark-mode', async({ mount }) => {
<LogItem <LogItem
index={ 42 } index={ 42 }
decoded={ inputDataMocks.withIndexedFields } decoded={ inputDataMocks.withIndexedFields }
address={ addressMocks.withName } address={{ ...addressMocks.withName, is_verified: true }}
topics={ TOPICS } topics={ TOPICS }
data={ DATA } data={ DATA }
type="transaction" type="transaction"
......
...@@ -43,7 +43,7 @@ const LogItem = ({ address, index, topics, data, decoded, type, tx_hash: txHash, ...@@ -43,7 +43,7 @@ const LogItem = ({ address, index, topics, data, decoded, type, tx_hash: txHash,
pt: 0, pt: 0,
}} }}
> >
{ !decoded && type === 'transaction' && ( { !decoded && !address.is_verified && type === 'transaction' && (
<GridItem colSpan={{ base: 1, lg: 2 }}> <GridItem colSpan={{ base: 1, lg: 2 }}>
<Alert status="warning" display="inline-table" whiteSpace="normal"> <Alert status="warning" display="inline-table" whiteSpace="normal">
To see accurate decoded input data, the contract must be verified.{ space } To see accurate decoded input data, the contract must be verified.{ space }
......
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