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 Sep 26, 2024
1 parent 6e0cfe9 commit 91f9abc
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 91f9abc

Please sign in to comment.