diff --git a/fvm/accountV2Migration/contract.go b/fvm/accountV2Migration/contract.go index 2bf1352cdb0..0d62dceb7d5 100644 --- a/fvm/accountV2Migration/contract.go +++ b/fvm/accountV2Migration/contract.go @@ -108,14 +108,15 @@ func declareScheduleAccountV2MigrationFunction(environment runtime.Environment, addressGenerator := chainID.Chain().NewAddressGeneratorAtIndex(addressStartIndex) for i := uint64(0); i < count; i++ { - address, err := addressGenerator.NextAddress() - if err != nil { - panic(err) - } - + address := addressGenerator.CurrentAddress() if !runtimeStorage.ScheduleV2Migration(common.Address(address)) { return interpreter.FalseValue } + + _, err := addressGenerator.NextAddress() + if err != nil { + panic(err) + } } return interpreter.TrueValue