From e5fa55e3983d2ce021bdc6df39bebf62c4d3a944 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 11 Jun 2019 23:04:35 -0400 Subject: [PATCH] Fix wallet output --- wallet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallet.go b/wallet.go index 0863b03..8f6b6cf 100644 --- a/wallet.go +++ b/wallet.go @@ -21,7 +21,7 @@ type walletOutParams struct { // ---- Struct for data received after sending to API type walletOutResult struct { - Result []WalletResult `json:"result"` + Result WalletResult `json:"result"` } type asset struct { Type string `json:"type"` @@ -111,5 +111,5 @@ func (k Keybase) TxDetail(txid string) (WalletResult, error) { m.Params.Options.Txid = txid r, err := walletAPIOut(k.Path, m) - return r.Result[0], err + return r.Result, err }