From 1969d1bab27d1bb83e805b838d5b2ebc20313c4b Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Fri, 9 Jun 2023 18:52:37 -0500 Subject: [PATCH] Unify the code --- pkg/graphql/graphql.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/graphql/graphql.go b/pkg/graphql/graphql.go index 9090194b..75a8b690 100644 --- a/pkg/graphql/graphql.go +++ b/pkg/graphql/graphql.go @@ -243,10 +243,7 @@ func (t *Transaction) From(ctx context.Context, args BlockNumberArgs) (*Account, if err != nil || tx == nil { return nil, err } - var signer types.Signer = types.HomesteadSigner{} - if tx.Protected() { - signer = types.NewEIP155Signer(tx.ChainId()) - } + signer := eth.SignerForTx(tx) from, _ := types.Sender(signer, tx) return &Account{