Skip to content

Commit

Permalink
fix: from address
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaktaeho committed Dec 16, 2023
1 parent 8b2f024 commit 789b614
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,8 @@ func (s *BlockChainAPI) GetTransactionReceiptsByBlock(ctx context.Context, block
for idx, receipt := range receipts {
tx := txs[idx]

var signer types.Signer = types.FrontierSigner{}

if tx.Protected() {
signer = types.NewEIP155Signer(tx.ChainId())
}

// Derive the sender.
signer := types.MakeSigner(s.b.ChainConfig(), block.Number(), block.Time())

Check warning on line 706 in internal/ethapi/api.go

View check run for this annotation

Codecov / codecov/patch

internal/ethapi/api.go#L705-L706

Added lines #L705 - L706 were not covered by tests
from, _ := types.Sender(signer, tx)

fields := map[string]interface{}{
Expand Down

0 comments on commit 789b614

Please sign in to comment.