From 2208036e1ae1362206cad8aa4484c786cb1630be Mon Sep 17 00:00:00 2001 From: Jordan Muir Date: Tue, 17 Sep 2019 15:58:22 -0400 Subject: [PATCH] Use correct actor index (#248) --- main/accounts/Account/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/accounts/Account/index.js b/main/accounts/Account/index.js index 226b013c9..eeee16c9a 100644 --- a/main/accounts/Account/index.js +++ b/main/accounts/Account/index.js @@ -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`)) }