Skip to content

Commit

Permalink
fix: Passport sample app default transaction example hex encoding dat…
Browse files Browse the repository at this point in the history
…a string (#2199)
  • Loading branch information
CodeSchwert authored Sep 22, 2024
1 parent f3a20da commit a6c2860
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a6c2860

Please sign in to comment.