Skip to content

Commit

Permalink
chore(evm): remove invalid block header root in test
Browse files Browse the repository at this point in the history
  • Loading branch information
zengzengzenghuy committed Jan 9, 2025
1 parent 2af6b5f commit 6d15c91
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions packages/evm/test/adapters/SP1Helios/01_SP1HeliosAdapter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,6 @@ describe("SP1HeliosAdapter", function () {
expect(await sp1HeliosAdapter.getHash(SOURCE_CHAIN_ID, expectedId)).to.equal(expectedHash)
})

it("Revert with invalid block header root", async function () {
const { sp1Helios, sp1HeliosAdapter } = await setup()
const INVALID_BLOCK_HEADER_ROOT = "0x882a3ae01f50fbd2c1951593d5f171eea0ae2ff9006bfb74aa8564f9265f02e6"
const setHeaderTx = await sp1Helios.setHeader(SOURCE_SLOT, INVALID_BLOCK_HEADER_ROOT)
expect(setHeaderTx).to.emit(sp1Helios.address, "HeadUpdate").withArgs(SOURCE_SLOT, INVALID_BLOCK_HEADER_ROOT)
await expect(
sp1HeliosAdapter.verifyAndStoreDispatchedMessage(
SOURCE_SLOT,
SLOT,
RECEIPT_ROOT_PROOF,
RECEIPT_ROOT,
RECEIPT_PROOF,
TX_INDEX,
LOG_INDEX,
),
).to.be.revertedWithCustomError(sp1HeliosAdapter, "InvalidReceiptsRoot")
})

it("Revert with invalid receipts root", async function () {
const { sp1Helios, sp1HeliosAdapter } = await setup()
const INVALID_RECEIPTS_ROOT = "0x082b59d750c71bb8258c020d231f7d3e489a8a8f76e13361405084fe2922fe0c"
Expand Down

0 comments on commit 6d15c91

Please sign in to comment.