Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 5a3fd32

Browse files
committed
delete deployed contract tracking
1 parent ad4f08a commit 5a3fd32

File tree

4 files changed

+5703
-5833
lines changed

4 files changed

+5703
-5833
lines changed

commands/dev-deploy.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,5 @@ async function devDeploy(options) {
107107
let state = await account.state();
108108
let codeHash = state.code_hash;
109109
await eventtracking.track(eventtracking.EVENT_ID_DEPLOY_END, { success: true, code_hash: codeHash, is_same_contract: prevCodeHash === codeHash, contract_id: options.accountId }, options);
110-
eventtracking.trackDeployedContract();
111110
console.log(`Done deploying ${options.initFunction ? 'and initializing' : 'to'} ${accountId}`);
112111
}

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ exports.deploy = async function (options) {
9292
let state = await account.state();
9393
let codeHash = state.code_hash;
9494
await eventtracking.track(eventtracking.EVENT_ID_DEPLOY_END, { success: true, code_hash: codeHash, is_same_contract: prevCodeHash === codeHash, contract_id: options.accountId }, options);
95-
eventtracking.trackDeployedContract();
9695
console.log(`Done deploying ${options.initFunction ? 'and initializing' : 'to'} ${options.accountId}`);
9796
}
9897
};

utils/eventtracking.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,9 @@ const askForConsentIfNeeded = async (options) => {
125125
}
126126
};
127127

128-
const trackDeployedContract = async () => {
129-
const shellSettings = settings.getShellSettings();
130-
const id = getSegmentID(shellSettings);
131-
// TODO: find a way to increment a Segment analytic property
132-
};
133-
134128
module.exports = {
135129
track,
136130
askForConsentIfNeeded,
137-
trackDeployedContract,
138131
// Some of the event ids are auto-generated runtime with the naming convention event_id_shell_{command}_start
139132

140133
EVENT_ID_CREATE_ACCOUNT_END: 'event_id_shell_create-account_end',

0 commit comments

Comments
 (0)