From 37992fda636c40957d693181cfcfbfa284091174 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 9 Dec 2022 19:15:04 +0800 Subject: [PATCH] test: update test_genesis --- packages/protocol/test/genesis/generate_genesis.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/protocol/test/genesis/generate_genesis.test.ts b/packages/protocol/test/genesis/generate_genesis.test.ts index 4abe3611ab1..05503c8872e 100644 --- a/packages/protocol/test/genesis/generate_genesis.test.ts +++ b/packages/protocol/test/genesis/generate_genesis.test.ts @@ -142,9 +142,11 @@ action("Generate Genesis", function () { signer ) - await expect( - LibTxDecoder.decodeTxList(ethers.utils.RLP.encode([])) - ).to.be.revertedWith("empty txList") + const decoded = await LibTxDecoder.callStatic.decodeTxList( + ethers.utils.RLP.encode([]) + ) + + expect(decoded.items.length).to.be.eql(0) }) it("TaikoL2", async function () {