Skip to content

Commit

Permalink
fix tx byte arr in synthetic endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jewei1997 committed Sep 26, 2024
1 parent 6e0cfe9 commit 27edaa5
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[:]))

Check warning on line 258 in evmrpc/block.go

View check run for this annotation

Codecov / codecov/patch

evmrpc/block.go#L258

Added line #L258 was not covered by tests
} else {
ti := uint64(receipt.TransactionIndex)
to := k.GetEVMAddressOrDefault(ctx, sdk.MustAccAddressFromBech32(m.Contract))
Expand Down

0 comments on commit 27edaa5

Please sign in to comment.