Skip to content

Commit

Permalink
Use correct actor index (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
floating committed Sep 17, 2019
1 parent 476c7c2 commit 2208036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/accounts/Account/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class Account {
signers.get(this.signer.id).signTransaction(this.index, rawTx, cb)
} else if (this.smart) {
if (this.smart.actor && this.smart.actor.account && this.smart.actor.account.signer) {
signers.get(this.smart.actor.account.id).signTransaction(this.index, rawTx, cb)
signers.get(this.smart.actor.account.id).signTransaction(this.smart.actor.index, rawTx, cb)
} else {
cb(new Error(`Agent's (${this.smart.agent}) signer is not ready`))
}
Expand Down

0 comments on commit 2208036

Please sign in to comment.