Skip to content

Commit

Permalink
fix: remove console warn
Browse files Browse the repository at this point in the history
  • Loading branch information
gabin54 committed Jul 12, 2023
1 parent 0f4d0bd commit 6269242
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions packages/sismo-connect-client/src/sismo-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ export class SismoConnectClient {
this._sismoConnectConfig.displayRawResponse = false;
}

if (this._sismoConnectConfig.displayRawResponse) {
console.warn("Sismo Connect displayRawResponse is true. Never use this mode in production!");
}

if (isImpersonationMode) {
console.warn(
`Sismo Connect redirects to the Impersonation Vault. The generated proofs are based on impersonated accounts: ${this._sismoConnectConfig.vault.impersonate}. Never use this mode in production!`
);
}

this._sdk = new Sdk(this._sismoConnectConfig.sismoApiUrl);
}

Expand Down
6 changes: 0 additions & 6 deletions packages/sismo-connect-server/src/sismo-connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ export class SismoConnectServer {

const isImpersonationMode: boolean = config.vault?.impersonate?.length > 0;

if (isImpersonationMode) {
console.warn(
`Sismo Connect redirects to the Impersonation Vault. The generated proofs are based on impersonated accounts: ${config.vault.impersonate}. Never use this mode in production!`
);
}

//By default use public gnosis provider
const sismoConnectProvider: SismoConnectProvider =
options?.provider ?? new JsonRpcProvider({ url: "https://rpc.gnosis.gateway.fm" });
Expand Down

0 comments on commit 6269242

Please sign in to comment.