From 46287a1be3d942c53204800e7c981a856c8cf53b Mon Sep 17 00:00:00 2001 From: amsanghi Date: Wed, 25 Oct 2023 19:05:46 +0530 Subject: [PATCH] minor fix --- system_tests/estimation_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system_tests/estimation_test.go b/system_tests/estimation_test.go index 6f741901d7..441c99bca0 100644 --- a/system_tests/estimation_test.go +++ b/system_tests/estimation_test.go @@ -141,6 +141,10 @@ func TestDifficultyForLatestArbOS(t *testing.T) { _, _, simple, err := mocksgen.DeploySimple(&auth, client) Require(t, err, "could not deploy contract") + tx, err := simple.StoreDifficulty(&auth) + Require(t, err) + _, err = EnsureTxSucceeded(ctx, client, tx) + Require(t, err) difficulty, err := simple.GetBlockDifficulty(&bind.CallOpts{}) Require(t, err) if !arbmath.BigEquals(difficulty, common.Big1) { @@ -163,6 +167,10 @@ func TestDifficultyForArbOSTen(t *testing.T) { _, _, simple, err := mocksgen.DeploySimple(&auth, client) Require(t, err, "could not deploy contract") + tx, err := simple.StoreDifficulty(&auth) + Require(t, err) + _, err = EnsureTxSucceeded(ctx, client, tx) + Require(t, err) difficulty, err := simple.GetBlockDifficulty(&bind.CallOpts{}) Require(t, err) if !arbmath.BigEquals(difficulty, common.Big1) {