Skip to content

Commit

Permalink
add “check block.difficulty value” block.difficulty=1
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchengzhu authored and gpBlockchain committed Aug 22, 2023
1 parent cad225f commit 1249d6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/opcodes/blockMsgContractTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ describe("BlockMsgContractTest.js opcode -blockchain -block ", function () {
expect(ethCallBlockData[3].toString()).to.be.equal(updateBlockMsg.difficulty.toString())
})

it("check block.difficulty value", async () => {
expect(ethCallBlockData[3].toString()).to.be.equal(String(1))
})

it("check block.gaslimit", async () => {
expect(ethCallBlockData[4]).to.be.gt("1")

Expand Down

0 comments on commit 1249d6e

Please sign in to comment.