From 91f9abc091253d41054440d5af4b4d227e2d1e9f 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 51e15fda7..8cdbd51ba 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))