diff options
author | kiel barry <kiel.j.barry@gmail.com> | 2018-06-05 18:31:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-06-05 18:31:34 +0800 |
commit | cbfb40b0aab093e1b612f3b16834894b2cc67882 (patch) | |
tree | 19cbd1397343459aabf211857fcc5df26f4cee6c /internal/ethapi | |
parent | 4cf2b4110e9942bdcba1b9b1d82b3ca8ff552f64 (diff) | |
download | dexon-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar dexon-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.gz dexon-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.bz2 dexon-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.lz dexon-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.xz dexon-cbfb40b0aab093e1b612f3b16834894b2cc67882.tar.zst dexon-cbfb40b0aab093e1b612f3b16834894b2cc67882.zip |
params: fix golint warnings (#16853)
params: fix golint warnings
Diffstat (limited to 'internal/ethapi')
-rw-r--r-- | internal/ethapi/api.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index a524dbadd..87eba7e1a 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -354,7 +354,7 @@ func (s *PrivateAccountAPI) signTransaction(ctx context.Context, args SendTxArgs var chainID *big.Int if config := s.b.ChainConfig(); config.IsEIP155(s.b.CurrentBlock().Number()) { - chainID = config.ChainId + chainID = config.ChainID } return wallet.SignTxWithPassphrase(account, passwd, tx, chainID) } @@ -1096,7 +1096,7 @@ func (s *PublicTransactionPoolAPI) sign(addr common.Address, tx *types.Transacti // Request the wallet to sign the transaction var chainID *big.Int if config := s.b.ChainConfig(); config.IsEIP155(s.b.CurrentBlock().Number()) { - chainID = config.ChainId + chainID = config.ChainID } return wallet.SignTx(account, tx, chainID) } @@ -1216,7 +1216,7 @@ func (s *PublicTransactionPoolAPI) SendTransaction(ctx context.Context, args Sen var chainID *big.Int if config := s.b.ChainConfig(); config.IsEIP155(s.b.CurrentBlock().Number()) { - chainID = config.ChainId + chainID = config.ChainID } signed, err := wallet.SignTx(account, tx, chainID) if err != nil { |