diff --git a/packages/passport/sdk-sample-app/src/components/zkevm/EthSendTransactionExamples/DefaultTransaction.tsx b/packages/passport/sdk-sample-app/src/components/zkevm/EthSendTransactionExamples/DefaultTransaction.tsx index d2f0323371..1d43cc11b0 100644 --- a/packages/passport/sdk-sample-app/src/components/zkevm/EthSendTransactionExamples/DefaultTransaction.tsx +++ b/packages/passport/sdk-sample-app/src/components/zkevm/EthSendTransactionExamples/DefaultTransaction.tsx @@ -34,7 +34,7 @@ function ShowGenericConfirmationScreen({ disabled, handleExampleSubmitted }: Req setParams([{ from: fromAddress, to: toAddress, - data: encUtils.utf8ToHex(data, true), + data: data.startsWith('0x') ? data : encUtils.utf8ToHex(data, true), }]); } catch (err) { setDataError(emptyDataError);