Skip to content

Commit

Permalink
Disabled Polkadot.js warnings (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenigs authored Oct 20, 2023
1 parent 8ad75b0 commit cd5da97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-donuts-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moonbeam-network/xcm-utils': patch
---

Disabled Polkadot.js API init warnings
1 change: 1 addition & 0 deletions packages/utils/src/polkadot/polkadot.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export async function getPolkadotApi(ws: string): Promise<ApiPromise> {
const promise =
cache.get(ws) ||
ApiPromise.create({
noInitWarn: true,
provider: new WsProvider(ws),
typesBundle,
});
Expand Down

0 comments on commit cd5da97

Please sign in to comment.