From a6c2860a26903011c8f23943582ba12b67b53fef Mon Sep 17 00:00:00 2001 From: Nik <2661899+CodeSchwert@users.noreply.github.com> Date: Mon, 23 Sep 2024 11:40:42 +1200 Subject: [PATCH] fix: Passport sample app default transaction example hex encoding data string (#2199) --- .../zkevm/EthSendTransactionExamples/DefaultTransaction.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);