Skip to content

Commit

Permalink
fix tx byte arr in synthetic endpoints (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei1997 authored and philipsu522 committed Sep 26, 2024
1 parent aae700c commit e742d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evmrpc/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package evmrpc
import (
"context"
"crypto/sha256"
"encoding/hex"
"errors"
"fmt"
"math/big"
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit e742d5e

Please sign in to comment.