internal/ethapi: golint fixes

This commit is contained in:
Mike Kinney 2019-12-09 23:21:45 -08:00
parent 405cb7ef27
commit c4dfa9dd86

View file

@ -538,7 +538,7 @@ func (s *PublicBlockChainAPI) GetBalance(ctx context.Context, address common.Add
return (*hexutil.Big)(state.GetBalance(address)), state.Error() return (*hexutil.Big)(state.GetBalance(address)), state.Error()
} }
// AccountResult is a struct for GetProof // AccountResult is a struct for GetProof()
type AccountResult struct { type AccountResult struct {
Address common.Address `json:"address"` Address common.Address `json:"address"`
AccountProof []string `json:"accountProof"` AccountProof []string `json:"accountProof"`
@ -548,6 +548,7 @@ type AccountResult struct {
StorageHash common.Hash `json:"storageHash"` StorageHash common.Hash `json:"storageHash"`
StorageProof []StorageResult `json:"storageProof"` StorageProof []StorageResult `json:"storageProof"`
} }
// StorageResult is a struct for storing proofs // StorageResult is a struct for storing proofs
type StorageResult struct { type StorageResult struct {
Key string `json:"key"` Key string `json:"key"`