Skip to content

Commit

Permalink
fix ts-test genesis block (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Sep 20, 2020
1 parent 0cbe438 commit b75f492
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions ts-tests/frontier-test-specs/simple-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"palletSudo": {
"key": "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
},
"frameEthereum": {},
"frameEvm": {
"accounts": {
"0x6be02d1d3665660d22ff9624b7be0551ee1ac91b": {
Expand Down
10 changes: 5 additions & 5 deletions ts-tests/tests/test-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ describeWithFrontier("Frontier RPC (Block)", `simple-specs.json`, (context) => {
expect(await context.web3.eth.getBlockNumber()).to.equal(0);
});

it.skip("should return genesis block", async function () {
it("should return genesis block", async function () {
expect(await context.web3.eth.getBlockNumber()).to.equal(0);

const block = await context.web3.eth.getBlock(0);
expect(block).to.include({
author: "0x0000000000000000000000000000001234567890",
author: "0x0000000000000000000000000000000000000000",
difficulty: "0",
extraData: "0x0000000000000000000000000000000000000000000000000000000000000000",
gasLimit: 0,
gasUsed: 0,
//hash: "0x14fe6f7c93597f79b901f8b5d7a84277a90915b8d355959b587e18de34f1dc17",
logsBloom:
"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
miner: "0x0000000000000000000000000000001234567890",
number: 1,
miner: "0x0000000000000000000000000000000000000000",
number: 0,
//parentHash: "0x2cc74f91423ba20e9bb0b2c7d8924eacd14bc98aa1daad078f8844e529221cde",
receiptsRoot: "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
sha3Uncles: "0x0000000000000000000000000000000000000000000000000000000000000000",
size: 539,
size: 533,
stateRoot: "0x0000000000000000000000000000000000000000000000000000000000000000",
//timestamp: 1595012243836,
totalDifficulty: null,
Expand Down

0 comments on commit b75f492

Please sign in to comment.