Skip to content

Commit e742d5e

Browse files
jewei1997philipsu522
authored andcommitted
fix tx byte arr in synthetic endpoints (#1872)
1 parent aae700c commit e742d5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

evmrpc/block.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package evmrpc
33
import (
44
"context"
55
"crypto/sha256"
6+
"encoding/hex"
67
"errors"
78
"fmt"
89
"math/big"
@@ -254,7 +255,7 @@ func EncodeTmBlock(
254255
continue
255256
}
256257
if !fullTx {
257-
transactions = append(transactions, th)
258+
transactions = append(transactions, "0x"+hex.EncodeToString(th[:]))
258259
} else {
259260
ti := uint64(receipt.TransactionIndex)
260261
to := k.GetEVMAddressOrDefault(ctx, sdk.MustAccAddressFromBech32(m.Contract))

0 commit comments

Comments
 (0)