Skip to content

Commit

Permalink
Tx logs: "Contract must be verified" message shown for the already ve… (
Browse files Browse the repository at this point in the history
#1286)

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

Fixes #1268
  • Loading branch information
tom2drum authored Oct 16, 2023
1 parent 9c51fb4 commit 3b49f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/shared/logs/LogItem.pw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('with decoded input data +@mobile +@dark-mode', async({ mount }) => {
<LogItem
index={ 42 }
decoded={ inputDataMocks.withIndexedFields }
address={ addressMocks.withName }
address={{ ...addressMocks.withName, is_verified: true }}
topics={ TOPICS }
data={ DATA }
type="transaction"
Expand Down
2 changes: 1 addition & 1 deletion ui/shared/logs/LogItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const LogItem = ({ address, index, topics, data, decoded, type, tx_hash: txHash,
pt: 0,
}}
>
{ !decoded && type === 'transaction' && (
{ !decoded && !address.is_verified && type === 'transaction' && (
<GridItem colSpan={{ base: 1, lg: 2 }}>
<Alert status="warning" display="inline-table" whiteSpace="normal">
To see accurate decoded input data, the contract must be verified.{ space }
Expand Down

0 comments on commit 3b49f1d

Please sign in to comment.