Fix not passing a connection when creating an account
This commit is contained in:
parent
771747fd66
commit
2e09479c69
2
sdk.go
2
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,
|
||||
|
|
Loading…
Reference in New Issue