From d544985a0c8ad2f46fee877a3eb0ca7bf228dd84 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Wed, 16 Nov 2022 18:34:51 +0800 Subject: [PATCH] fix benchmarks with updated endblocker --- x/alliance/benchmark/benchmark_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x/alliance/benchmark/benchmark_test.go b/x/alliance/benchmark/benchmark_test.go index cea2c027..f8191f0a 100644 --- a/x/alliance/benchmark/benchmark_test.go +++ b/x/alliance/benchmark/benchmark_test.go @@ -93,16 +93,17 @@ func TestRunBenchmarks(t *testing.T) { } // Endblock + assets := app.AllianceKeeper.GetAllAssets(ctx) app.AllianceKeeper.CompleteRedelegations(ctx) err = app.AllianceKeeper.CompleteUndelegations(ctx) if err != nil { panic(err) } - _, err = app.AllianceKeeper.DeductAssetsHook(ctx) + _, err = app.AllianceKeeper.DeductAssetsHook(ctx, assets) if err != nil { panic(err) } - err = app.AllianceKeeper.RebalanceHook(ctx) + err = app.AllianceKeeper.RebalanceHook(ctx, assets) if err != nil { panic(err) }