From f8a983f22314f9ffc1001781ff09c01bd9d52068 Mon Sep 17 00:00:00 2001 From: Jordan Ribbink Date: Mon, 26 Feb 2024 09:30:14 -0800 Subject: [PATCH] Add staged contracts as argument for Cadence 1.0 state migration --- storage/migration/cadence1.go | 4 +--- storage/migration/cadence1_test.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/storage/migration/cadence1.go b/storage/migration/cadence1.go index 2e367b14..12402c9a 100644 --- a/storage/migration/cadence1.go +++ b/storage/migration/cadence1.go @@ -31,6 +31,7 @@ import ( func MigrateCadence1( store *sqlite.Store, + stagedContracts []migrations.StagedContract, rwf reporters.ReportWriterFactory, logger zerolog.Logger, ) error { @@ -46,9 +47,6 @@ func MigrateCadence1( // TODO: EVM contract is not deployed in snapshot yet, so can't update it const evmContractChange = migrations.EVMContractChangeNone - // TODO: - var stagedContracts []migrations.StagedContract - cadence1Migrations := migrations.NewCadence1Migrations( logger, rwf, diff --git a/storage/migration/cadence1_test.go b/storage/migration/cadence1_test.go index 0d8baf69..984bf57f 100644 --- a/storage/migration/cadence1_test.go +++ b/storage/migration/cadence1_test.go @@ -59,7 +59,7 @@ func TestCadence1Migration(t *testing.T) { // Then migrate the values. rwf := &NOOPReportWriterFactory{} - err = MigrateCadence1(store, rwf, logger) + err = MigrateCadence1(store, nil, rwf, logger) require.NoError(t, err) require.Empty(t, logWriter.logs)