Merge PR #56: Update to latest SDK: Supply

This commit is contained in:
Federico Kunze
2019-07-05 15:40:06 +02:00
committed by Alexander Bezobchuk
parent 534e56abd1
commit bab3694437
27 changed files with 296 additions and 670 deletions

View File

@@ -265,14 +265,12 @@ func deleteKey(t *testing.T, port, name, password string) {
}
// GET /auth/accounts/{address} Get the account information on blockchain
func getAccount(t *testing.T, port string, addr sdk.AccAddress) auth.Account {
func getAccount(t *testing.T, port string, addr sdk.AccAddress) (acc auth.Account) {
res, body := Request(t, port, "GET", fmt.Sprintf("/auth/accounts/%s", addr.String()), nil)
require.Equal(t, http.StatusOK, res.StatusCode, body)
var acc authrest.AccountWithHeight
require.Nil(t, cdc.UnmarshalJSON([]byte(body), &acc))
return acc.Account
return acc
}
// ----------------------------------------------------------------------