Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Oct 24, 2019
1 parent 63192a6 commit c74a203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/scripts/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TxParams } from '@openzeppelin/upgrades';
import ProjectFile from '../models/files/ProjectFile';
import NetworkFile from '../models/files/NetworkFile';

interface ContractData {
export interface ContractData {
name: string;
alias: string;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/telemetry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ export default {

// Conceal data before sending it
const concealedData = concealData(options, telemetryOptions.salt);
const commandData: CommandData = { ...concealedData, name: commandName };
const commandData: Concealed<CommandData> = { ...concealedData, name: commandName };
if (network !== undefined) commandData.network = network;

this.sendToFirebase(telemetryOptions.uuid, commandData);
},

sendToFirebase(uuid: string, commandData: CommandData): void {
sendToFirebase(uuid: string, commandData: Concealed<CommandData>): void {
// We send to Firebase in a child process so that the CLI is not blocked from exiting.
const child = proc.fork(path.join(__dirname, './send-to-firebase'), [], {
stdio: ['ignore', 'ignore', 'ignore', 'ipc'],
Expand Down

0 comments on commit c74a203

Please sign in to comment.