Closed psy2848048 closed 4 years ago
Try to fix by changing JSON descriptor
// QueryGetBalanceDetail payload for balance query
type QueryGetBalanceDetail struct {
Address sdk.AccAddress `json:"address_holder"`
}
// QueryGetStakeDetail payload for stake query
type QueryGetStakeDetail struct {
Address sdk.AccAddress `json:"address_staker"`
}
staked
should be zero for the address below but printed as same as the available asset in REST call. This issue is not occurred inclif
.http://3.34.5.208:1317/hdac/stake?address=friday193lmkelm57nvsrafm4fewjs3s8nq6eduukev7z4kz2ac3h64elqsn9llrc
I checked by
clif hdac getstake
andclif hdac getbalance
and the REST result ofhdac/stake
prints of the valuehdac/balance