From 899a5e9a4419b8ac1b034f125051056d5411ebb7 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Thu, 28 Jan 2021 21:50:25 -0800 Subject: [PATCH] Remove analytics consent query from non-interactive commands --- commands/create-account.js | 1 - index.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/commands/create-account.js b/commands/create-account.js index 0b727e65..117cac50 100644 --- a/commands/create-account.js +++ b/commands/create-account.js @@ -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('.'); diff --git a/index.js b/index.js index 5a80379b..34a1afb0 100644 --- a/index.js +++ b/index.js @@ -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}`); @@ -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();