Skip to content

Commit

Permalink
Remove analytics consent query from non-interactive commands
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Jan 29, 2021
1 parent d705484 commit 899a5e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion commands/create-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const createAccountCommandDeprecated = {
async function createAccount(options) {
// NOTE: initialBalance is passed as part of config here, parsed in middleware/initial-balance
// periods are disallowed in top-level accounts and can only be used for subaccounts
await eventtracking.askForConsentIfNeeded(options, options.masterAccount);
const splitAccount = options.accountId.split('.');

const splitMaster = options.masterAccount.split('.');
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ exports.clean = async function () {
};

exports.deploy = async function (options) {
await eventtracking.askForConsentIfNeeded(options);
console.log(
`Starting deployment. Account id: ${options.accountId}, node: ${options.nodeUrl}, helper: ${options.helperUrl}, file: ${options.wasmFile}`);

Expand Down Expand Up @@ -176,7 +175,6 @@ exports.login = async function (options) {
};

exports.viewAccount = async function (options) {
await eventtracking.askForConsentIfNeeded(options);
let near = await connect(options);
let account = await near.account(options.accountId);
let state = await account.state();
Expand Down

0 comments on commit 899a5e9

Please sign in to comment.