Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yogurtandjam committed Jun 19, 2024
1 parent 78b08bb commit f1ea6bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ internal class SkipRoutePayloadProcessor(parser: ParserProtocol) : BaseProcessor
): Map<String, Any> {
val txType = getTxType(payload)
val modified = transform(existing, payload, keyMap)
val data = modified.get("data")
if (data != null && txType == TxType.EVM) {
val data = modified["data"] ?: return modified
if (txType == TxType.EVM) {
// skip does not provide the 0x prefix. it's not required but is good for clarity
// and keeps our typing honest (we typecast this value to evmAddress in web)
modified.safeSet("data", "0x$data")
Expand Down

0 comments on commit f1ea6bc

Please sign in to comment.