|
|
@ -98,7 +98,10 @@ func (s *stateObject) empty() bool { |
|
|
|
|
|
|
|
|
|
|
|
// newObject creates a state object.
|
|
|
|
// newObject creates a state object.
|
|
|
|
func newObject(db *StateDB, address common.Address, acct *types.StateAccount) *stateObject { |
|
|
|
func newObject(db *StateDB, address common.Address, acct *types.StateAccount) *stateObject { |
|
|
|
origin := acct |
|
|
|
var ( |
|
|
|
|
|
|
|
origin = acct |
|
|
|
|
|
|
|
created = acct == nil // true if the account was not existent
|
|
|
|
|
|
|
|
) |
|
|
|
if acct == nil { |
|
|
|
if acct == nil { |
|
|
|
acct = types.NewEmptyStateAccount() |
|
|
|
acct = types.NewEmptyStateAccount() |
|
|
|
} |
|
|
|
} |
|
|
@ -111,6 +114,7 @@ func newObject(db *StateDB, address common.Address, acct *types.StateAccount) *s |
|
|
|
originStorage: make(Storage), |
|
|
|
originStorage: make(Storage), |
|
|
|
pendingStorage: make(Storage), |
|
|
|
pendingStorage: make(Storage), |
|
|
|
dirtyStorage: make(Storage), |
|
|
|
dirtyStorage: make(Storage), |
|
|
|
|
|
|
|
created: created, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|