Skip to content

Commit

Permalink
Remove logging and duplicate add signing.
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinbrown committed Jun 28, 2019
1 parent 60ad9ee commit 3a5a7d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/accounts/accountManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,6 @@ export class AccountManager {
* @param account Account without `eosio.code` permissions
*/
public static addCodePermission = async (account: Account) => {
// Ensure we have the private key to do this if they've passed one in.
EOSManager.addSigningAccountIfMissing(account);

// We need to get their existing permissions, then add in a new eosio.code permission for this contract.
const { permissions } = await EOSManager.rpc.get_account(account.name);
const { required_auth } = permissions.find(
Expand Down
9 changes: 0 additions & 9 deletions src/eosManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,6 @@ export class EOSManager {
console.log();
}

console.log('EOS signature provider', eos.signatureProvider);
const availableKeys = await eos.signatureProvider.getAvailableKeys();
console.log('Available keys: ', availableKeys);
const requiredKeys = await eos.authorityProvider.getRequiredKeys({
transaction,
availableKeys,
});
console.log('Required keys: ', requiredKeys);

return await eos.transact(transaction, flattenedOptions);
};
}

0 comments on commit 3a5a7d7

Please sign in to comment.