From 22fc002f046eac85b7a5666329ad479009e1bb6b Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Mon, 3 Oct 2022 08:05:54 +0300 Subject: [PATCH] fix: init AccountInfoResponse for single account --- account.go | 1 + 1 file changed, 1 insertion(+) diff --git a/account.go b/account.go index 72e6ef0..850e387 100644 --- a/account.go +++ b/account.go @@ -190,6 +190,7 @@ func (c *Client) GetAccountInfo( acc Address, opts *RequestOptions, ) (res *AccountInfoResponse, err error) { + res = &AccountInfoResponse{} res2, err := c.GetAccountsInfo(ctx, []Address{acc}, opts) if err != nil { return