Skip to content

Commit

Permalink
Use runtime api in net_version (#114)
Browse files Browse the repository at this point in the history
* Update frontier pin

* Add version tests
  • Loading branch information
tgmichel authored Nov 13, 2020
1 parent b9a1151 commit e694df5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
12 changes: 6 additions & 6 deletions node/standalone/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/tests/test-version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { expect } from "chai";
import { step } from "mocha-steps";

import { describeWithMoonbeam } from "./util";

describeWithMoonbeam("Moonbeam RPC (Version)", `simple-specs.json`, (context) => {
step("eth_chainId should match", async function () {
expect(await context.web3.eth.getChainId()).to.equal(1281);
});
step("net_version should match", async function () {
expect(await context.web3.eth.net.getId()).to.equal(1281);
});
});

0 comments on commit e694df5

Please sign in to comment.