From 2e09479c694ee277b3131053f5ab2b8c491829b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Cidre?= Date: Mon, 7 May 2018 15:22:33 +0200 Subject: [PATCH] Fix not passing a connection when creating an account --- sdk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk.go b/sdk.go index 0ca695c..247e842 100644 --- a/sdk.go +++ b/sdk.go @@ -32,6 +32,7 @@ func (c *SDK) Login(addr, pwd string) (a *Account, err error) { return a, err } return &Account{ + conn: c, Address: res.Result.AddressKeyID, }, err } @@ -43,6 +44,7 @@ func (c *SDK) Signup(pwd string) (a *Account, err error) { return a, err } return &Account{ + conn: c, Address: res.Result.Address, PubKey: res.Result.Pubkey, Mnemonic: res.Result.Mnemonic,