diff --git a/txpool/txpool_test.go b/txpool/txpool_test.go index 59d19637fd..1f84f12734 100644 --- a/txpool/txpool_test.go +++ b/txpool/txpool_test.go @@ -131,10 +131,8 @@ func TestAddTxErrors(t *testing.T) { signTx := func(transaction *types.Transaction) *types.Transaction { transaction.SetChainID(big.NewInt(0)) - var signedTx *types.Transaction - var signErr error + signedTx, signErr := poolSigner.SignTx(transaction, defaultKey) - signedTx, signErr = poolSigner.SignTx(transaction, defaultKey) if signErr != nil { t.Fatalf("Unable to sign transaction, %v", signErr) }