// StorageTrie returns the storage trie of an account.
// The return value is a copy and is nil for non-existent accounts.
StorageTrie returns the storage trie of an account.
The return value is a copy and is nil for non-existent accounts.
// StorageTrie returns the storage trie of an account . // The return value is a copy and is nil for non - existent accounts .
func (shard *StateDBManage) StorageTrie(cointyp string, addr common.Address) Trie {
	stateObject := shard.getStateObject(cointyp, addr)
	if stateObject == nil {
		return nil
	}
	sd, err := shard.GetStateDb(cointyp, addr)
	if err != nil {
		log.Error("sharding_statedb", "sharding_StorageTrie:", err)
		return nil
	}
	cpy := stateObject.deepCopy(sd)
	return cpy.updateTrie(shard.db)
}
func ( shard * StateDBManage ) StorageTrie ( cointyp string , addr common . Address ) Trie { stateObject := shard . getStateObject ( cointyp , addr ) if stateObject == nil { return nil } sd , err := shard . GetStateDb ( cointyp , addr ) if err != nil { log . Error ( " " , " " , err ) return nil } cpy := stateObject . deepCopy ( sd ) return cpy . updateTrie ( shard . db ) }
StorageTrie returns the storage trie of an account.
StorageTrie returns the storage trie of an account .