Skip to content
This repository has been archived by the owner on Dec 4, 2021. It is now read-only.

Commit

Permalink
fix: console.log-smartweave situation
Browse files Browse the repository at this point in the history
  • Loading branch information
martonlederer committed Oct 10, 2020
1 parent cf77e9e commit ec29d99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Expand Up @@ -23,7 +23,11 @@ import { createGenericClient } from "@utils/arweave";
import { JWKInterface } from "arweave/node/lib/wallet";
import Transaction from "arweave/node/lib/transaction";

globalThis.console.log = (x: string) => x;
// eslint-disable-next-line
globalThis.console.log = (x: any) => {
if (new Error().stack?.includes("smartweave")) return;
console.info(x);
};

export default class Verto {
public arweave!: Arweave;
Expand Down

0 comments on commit ec29d99

Please sign in to comment.