Skip to content

Commit

Permalink
Always make sure we have the signing key when calling addCodePermissi…
Browse files Browse the repository at this point in the history
…on, even if the account hasn't been previously configured.
  • Loading branch information
thekevinbrown committed May 20, 2019
1 parent 8d68b10 commit 49f1577
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/accounts/accountManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ export class AccountManager {
`Code permission is already present on account ${account.name} for contract ${account.name}`
);
}

// Ensure we're good to sign this transaction.
EOSManager.addSigningAccountIfMissing(account);

// Append the `eosio.code` permission to existing
required_auth.accounts.push({
permission: { actor: account.name, permission: 'eosio.code' },
Expand Down

0 comments on commit 49f1577

Please sign in to comment.