Skip to content

Commit 967a559

Browse files
committed
reproducing chopsticks error
1 parent 31ed9f1 commit 967a559

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

examples/check_chopsticks.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { ChopsticksProvider, setup } from "@acala-network/chopsticks-core";
2+
3+
const chain = await setup({ endpoint: "wss://rpc.interweb-it.com/bulletin" });
4+
await chain.api.isReady;
5+
6+
const innerProvider = new ChopsticksProvider(chain);
7+
await innerProvider.isReady;
8+
9+
const result = await innerProvider.send("dev_newBlock", [], false);
10+
console.log({ result });

examples/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"ws": "^8.18.0"
2020
},
2121
"devDependencies": {
22+
"@acala-network/chopsticks": "^1.2.5",
2223
"@polkadot-api/cli": "^0.13.3"
2324
}
2425
}

0 commit comments

Comments
 (0)