// Retrieve the balance from the given address or 0 if object not found
Retrieve the balance from the given address or 0 if object not found
// Retrieve the balance from the given address or 0 if object not found
func (shard *StateDBManage) GetBalance(cointyp string, addr common.Address) common.BalanceType {
	sd, err := shard.GetStateDb(cointyp, addr)
	if err != nil {
		log.Error("sharding_statedb", "sharding_GetBalance:", err)
		return nil
	}
	return sd.GetBalance(addr)
}
func ( shard * StateDBManage ) GetBalance ( cointyp string , addr common . Address ) common . BalanceType { sd , err := shard . GetStateDb ( cointyp , addr ) if err != nil { log . Error ( " " , " " , err ) return nil } return sd . GetBalance ( addr ) }
Retrieve the balance from the given address or 0 if object not found
Retrieve the balance from the given address or 0 if object not found