- {#if preparedTransaction.value}
-
- {/if}
- {#if parsedData?.type === ParsedSmartContractType.CoinTransfer}
- {@const baseCoinTransfer = {
- token: getTokenFromSelectedAccountTokens(BASE_TOKEN_ID, evmNetwork.id),
- rawAmount: parsedData.rawAmount,
- }}
-
- {:else if parsedData?.type === ParsedSmartContractType.TokenTransfer}
- {@const tokenTransfer = {
- token: getTokenFromSelectedAccountTokens(parsedData.tokenId, evmNetwork.id),
- rawAmount: parsedData.rawAmount,
- }}
-
- {:else if parsedData?.type === ParsedSmartContractType.NftTransfer}
- {@const nft = getNftByIdForAccount($selectedAccount?.index, parsedData.nftId)}
-
- {:else if parsedData?.type === ParsedSmartContractType.TokenApproval}
-
-
-
- {:else if parsedData?.type === ParsedSmartContractType.SmartContract}
-
-
-
- {/if}
+ }
+
+
+
+{#if (preparedTransaction.value && !parsedData) || parsedData?.type === ParsedSmartContractType.CoinTransfer}
+ {@const potentialAdditionalRawAmount =
+ parsedData?.type === ParsedSmartContractType.CoinTransfer ? parsedData?.rawAmount : BigInt(0)}
+ {@const recipientAddress =
+ parsedData?.type === ParsedSmartContractType.CoinTransfer
+ ? parsedData.recipientAddress
+ : String(preparedTransaction.to)}
+ {@const recipient = getSubjectFromAddress(recipientAddress, evmNetwork.id)}
+
+
+
+
+
+{:else if parsedData?.type === ParsedSmartContractType.TokenTransfer}
+ {@const recipient = getSubjectFromAddress(parsedData.recipientAddress, evmNetwork.id)}
+
+
+
+
+
+{:else if parsedData?.type === ParsedSmartContractType.NftTransfer}
+ {@const recipient = getSubjectFromAddress(parsedData.recipientAddress, evmNetwork.id)}
+
+
+
+
+
+
+{:else if parsedData?.type === ParsedSmartContractType.TokenApproval}
+
+
+
+
+
+{:else if parsedData?.type === ParsedSmartContractType.SmartContract}
+
+
-
-