// Retrieve a state object or create a new state object if nil.
Retrieve a state object or create a new state object if nil.
// Retrieve a state object or create a new state object if nil .
func (shard *StateDBManage) GetOrNewStateObject(cointyp string, addr common.Address) *stateObject {
	statedb, err := shard.GetStateDb(cointyp, addr)
	if err != nil {
		log.Error("sharding_statedb", "sharding_GetOrNewStateObject:", err)
		return nil
	}
	return statedb.GetOrNewStateObject(addr)
}
func ( shard * StateDBManage ) GetOrNewStateObject ( cointyp string , addr common . Address ) * stateObject { statedb , err := shard . GetStateDb ( cointyp , addr ) if err != nil { log . Error ( " " , " " , err ) return nil } return statedb . GetOrNewStateObject ( addr ) }
Retrieve a state object or create a new state object if nil.
Retrieve a state object or create a new state object if nil .