Fix not passing a connection when creating an account

This commit is contained in:
Adrià Cidre 2018-05-07 15:22:33 +02:00
parent 771747fd66
commit 2e09479c69
No known key found for this signature in database
GPG Key ID: D246A27D58A92CAB
1 changed files with 2 additions and 0 deletions

2
sdk.go
View File

@ -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,