diff --git a/test/suites/dev/moonbase/test-randomness/test-randomness-babe-lottery2.ts b/test/suites/dev/moonbase/test-randomness/test-randomness-babe-lottery2.ts index bbdbcc211a..0dea4a69b9 100644 --- a/test/suites/dev/moonbase/test-randomness/test-randomness-babe-lottery2.ts +++ b/test/suites/dev/moonbase/test-randomness/test-randomness-babe-lottery2.ts @@ -47,14 +47,14 @@ describeSuite({ args: [0], account: BALTATHAR_ADDRESS, }); - expect(estimatedGas).toMatchInlineSnapshot(`171662n`); + expect(estimatedGas).toMatchInlineSnapshot(`687763n`); const rawTxn = await context.writePrecompile!({ precompileName: "Randomness", functionName: "fulfillRequest", args: [0], + gas: estimatedGas, rawTxOnly: true, - gas: 280576n, // Taken from fullfillReceipt inline snapshot privateKey: BALTATHAR_PRIVATE_KEY, }); @@ -175,11 +175,11 @@ describeSuite({ ).to.be.true; expect( (await context.polkadotJs().query.system.account(charleth.address)).data.free.toBigInt() > - DEFAULT_GENESIS_BALANCE + DEFAULT_GENESIS_BALANCE ).to.be.false; expect( (await context.polkadotJs().query.system.account(dorothy.address)).data.free.toBigInt() > - DEFAULT_GENESIS_BALANCE + DEFAULT_GENESIS_BALANCE ).to.be.true; }, }); diff --git a/test/suites/dev/moonbase/test-randomness/test-randomness-vrf-lottery5.ts b/test/suites/dev/moonbase/test-randomness/test-randomness-vrf-lottery5.ts index 72eb182426..454db04b7d 100644 --- a/test/suites/dev/moonbase/test-randomness/test-randomness-vrf-lottery5.ts +++ b/test/suites/dev/moonbase/test-randomness/test-randomness-vrf-lottery5.ts @@ -48,13 +48,13 @@ describeSuite({ args: [0], }); - expect(estimatedGas).toMatchInlineSnapshot(`171514n`); + expect(estimatedGas).toMatchInlineSnapshot(`677344n`); const rawTxn = await context.writePrecompile!({ precompileName: "Randomness", functionName: "fulfillRequest", args: [0], - gas: 280576n, // Taken from fullfillReceipt inline snapshot + gas: estimatedGas, rawTxOnly: true, }); const { result } = await context.createBlock(rawTxn);