Skip to content

Commit

Permalink
add api option on polkadot to shush its warning logs (#415)
Browse files Browse the repository at this point in the history
related entropyxyz/cli#48
closes #303 

I tested this manually had to temporarily disable `patch-package` i
think because the cli is also has a polkadot dependency or my
misunderstanding of are tooling we still get the warning logs from the
api on creation in the cli. this should quiet those.
  • Loading branch information
frankiebee authored Aug 29, 2024
2 parents dae4cb0 + 5caad24 commit c8bc2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default class Entropy {
async #init (opts: EntropyOpts) {
this.keyring = opts.keyring
const wsProvider = new WsProvider(opts.endpoint)
this.substrate = new ApiPromise({ provider: wsProvider })
this.substrate = new ApiPromise({ provider: wsProvider, noInitWarn: true })
await this.substrate.isReadyOrError // throws an error if fails

this.registrationManager = new RegistrationManager({
Expand Down

0 comments on commit c8bc2ab

Please sign in to comment.