diff --git a/packages/desktop/components/popup/popups/EvmTransactionFromDappPopup.svelte b/packages/desktop/components/popup/popups/EvmTransactionFromDappPopup.svelte index 6117fc74f7..a49222b68b 100644 --- a/packages/desktop/components/popup/popups/EvmTransactionFromDappPopup.svelte +++ b/packages/desktop/components/popup/popups/EvmTransactionFromDappPopup.svelte @@ -20,7 +20,7 @@ import { TokenTransferData } from '@core/wallet' import { Nft } from '@core/nfts' import { getNftByIdFromAllAccountNfts } from '@core/nfts/actions' - import { Alert, Table } from '@bloomwalletio/ui' + import { Alert, Link, Table, Text } from '@bloomwalletio/ui' import { PopupId, closePopup, modifyPopupState, openPopup } from '@desktop/auxiliary/popup' import { truncateString } from '@core/utils' import { openUrlInBrowser } from '@core/app' @@ -161,18 +161,29 @@
{#if isSmartContractCall}
- - onExplorerClick(String(preparedTransaction.to)), - }, - { key: localize('general.methodName'), value: methodName }, - { key: localize('general.data'), value: String(preparedTransaction.data), copyable: true }, - ]} - /> + + + {localize('popups.smartContractCall.unableToVerify')} + onExplorerClick(String(preparedTransaction.to))} + text={localize('popups.smartContractCall.viewSmartContract')} + /> + +
onExplorerClick(String(preparedTransaction.to)), + }, + { key: localize('general.methodName'), value: methodName }, + { key: localize('general.data'), value: String(preparedTransaction.data), copyable: true }, + ]} + /> + {:else} diff --git a/packages/shared/src/locales/en.json b/packages/shared/src/locales/en.json index bb021a2b40..a2e3bf7190 100644 --- a/packages/shared/src/locales/en.json +++ b/packages/shared/src/locales/en.json @@ -993,6 +993,7 @@ "smartContractCall": { "title": "Smart contract call to {contractAddress}", "unableToVerify": "Bloom is unable to verify the smart contract call. Only proceed with apps you trust.", + "viewSmartContract": "View Smart Contract", "action": "Confirm", "success": "Smart contract call to {recipient}" },