Skip to content

Commit

Permalink
Ensure we have signing details necessary to send transactions from au…
Browse files Browse the repository at this point in the history
…thorization before trying to send the transaction.
  • Loading branch information
thekevinbrown committed May 20, 2019
1 parent e7aaf0e commit 0f2fbd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contracts/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ export class Contract implements EOSJSContract {
authorization = options.from;
}

// Ensure we have the key to sign with.
EOSManager.addSigningAccountIfMissing(authorization);

return EOSManager.transact(
{
actions: [
Expand Down

0 comments on commit 0f2fbd0

Please sign in to comment.