diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index bf223384fd..09776c6b47 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -289,7 +289,7 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *common.Address, i rawTx = types.NewTransaction(nonce, c.address, value, gasLimit, gasPrice, input) } if opts.Signer == nil { - return rawTx, errors.New("no signer to authorize the transaction with") + return nil, errors.New("no signer to authorize the transaction with") } signedTx, err := opts.Signer(types.HomesteadSigner{}, opts.From, rawTx) if err != nil {