From e742d5e015f7191f513b3ca1307430722ab115a0 Mon Sep 17 00:00:00 2001 From: Jeremy Wei Date: Thu, 26 Sep 2024 19:36:49 -0400 Subject: [PATCH] fix tx byte arr in synthetic endpoints (#1872) --- evmrpc/block.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evmrpc/block.go b/evmrpc/block.go index 789275fb5..bbcb9e411 100644 --- a/evmrpc/block.go +++ b/evmrpc/block.go @@ -3,6 +3,7 @@ package evmrpc import ( "context" "crypto/sha256" + "encoding/hex" "errors" "fmt" "math/big" @@ -254,7 +255,7 @@ func EncodeTmBlock( continue } if !fullTx { - transactions = append(transactions, th) + transactions = append(transactions, "0x"+hex.EncodeToString(th[:])) } else { ti := uint64(receipt.TransactionIndex) to := k.GetEVMAddressOrDefault(ctx, sdk.MustAccAddressFromBech32(m.Contract))