Skip to content

Commit

Permalink
fix: Ae.WithAccount() was not copying the Account object to the Oracl…
Browse files Browse the repository at this point in the history
…e struct
  • Loading branch information
randomshinichi committed Mar 23, 2019
1 parent 05516cd commit ef9eab6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions aeternity/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ type Ae struct {
// Wallet high level abstraction for operation on a wallet
type Wallet struct {
nodeClient *apiclient.Node
owner *Account
owner *Account
}

// Aens abstractions for aens operations
type Aens struct {
nodeClient *apiclient.Node
nodeClient *apiclient.Node
owner *Account
name string
preClaimSalt []byte
Expand All @@ -32,14 +32,14 @@ type Aens struct {
// Contract abstractions for contracts
type Contract struct {
nodeClient *apiclient.Node
owner *Account
source string
owner *Account
source string
}

// Oracle abstractions for oracles
type Oracle struct {
nodeClient *apiclient.Node
owner *Account
owner *Account
}

// NewCli obtain a new nodeClient instance
Expand Down Expand Up @@ -73,5 +73,6 @@ func (ae *Ae) WithAccount(account *Account) *Ae {
ae.Wallet.owner = account
ae.Aens.owner = account
ae.Contract.owner = account
ae.Oracle.owner = account
return ae
}

0 comments on commit ef9eab6

Please sign in to comment.