From 1bf1c064efe986712e4c491b53d6767cf6c4a8f9 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 9 Jun 2023 18:44:30 -0500 Subject: [PATCH] Fix for getTransactionReceipt returning empty 'from' address. --- pkg/eth/api.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/eth/api.go b/pkg/eth/api.go index 6ba22c21..091f4f20 100644 --- a/pkg/eth/api.go +++ b/pkg/eth/api.go @@ -604,9 +604,11 @@ func (pea *PublicEthAPI) localGetTransactionReceipt(ctx context.Context, hash co } receipt := receipts[index] - var signer types.Signer = types.FrontierSigner{} + var signer types.Signer if tx.Protected() { - signer = types.NewEIP155Signer(tx.ChainId()) + signer = types.LatestSignerForChainID(tx.ChainId()) + } else { + signer = types.HomesteadSigner{} } from, _ := types.Sender(signer, tx)