mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-15 19:31:37 +00:00
lint
This commit is contained in:
parent
06a96190b4
commit
fe1b1180f4
1 changed files with 5 additions and 4 deletions
|
|
@ -44,14 +44,15 @@ func init() {
|
||||||
type stateMap = map[common.Address]*account
|
type stateMap = map[common.Address]*account
|
||||||
|
|
||||||
type account struct {
|
type account struct {
|
||||||
Balance *big.Int `json:"balance,omitempty"`
|
Balance *big.Int `json:"balance,omitempty"`
|
||||||
// Pointer so omitempty can omit unchanged code (nil) while still
|
// Code is a pointer so omitempty can omit unchanged code (nil) while
|
||||||
// emitting "0x" when code is cleared (e.g. EIP-7702 deauthorization).
|
// still emitting "0x" when code is cleared (e.g. EIP-7702 deauth).
|
||||||
Code *[]byte `json:"code,omitempty"`
|
Code *[]byte `json:"code,omitempty"`
|
||||||
CodeHash *common.Hash `json:"codeHash,omitempty"`
|
CodeHash *common.Hash `json:"codeHash,omitempty"`
|
||||||
Nonce uint64 `json:"nonce,omitempty"`
|
Nonce uint64 `json:"nonce,omitempty"`
|
||||||
Storage map[common.Hash]common.Hash `json:"storage,omitempty"`
|
Storage map[common.Hash]common.Hash `json:"storage,omitempty"`
|
||||||
empty bool
|
|
||||||
|
empty bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *account) exists() bool {
|
func (a *account) exists() bool {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue