From 90e85d0e037244076d3e63011d24de2393d4a292 Mon Sep 17 00:00:00 2001 From: noot <36753753+noot@users.noreply.github.com> Date: Thu, 16 Dec 2021 17:41:02 -0500 Subject: [PATCH] fix v6 market actor bug (#1341) --- vm/actor/src/builtin/market/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/actor/src/builtin/market/mod.rs b/vm/actor/src/builtin/market/mod.rs index 5bc57a00c49a..bb2ae82ed119 100644 --- a/vm/actor/src/builtin/market/mod.rs +++ b/vm/actor/src/builtin/market/mod.rs @@ -477,7 +477,7 @@ impl Actor { // This should only fail on programmer error because all expected invalid conditions should be filtered in the first set of checks. // TODO: Check if we neeed to make the previous look non mut - for (vid, valid_deal) in params.deals.iter_mut().enumerate() { + for (vid, valid_deal) in valid_deals.iter().enumerate() { msm.lock_client_and_provider_balances(&valid_deal.proposal)?; let id = msm.generate_storage_deal_id();