From a8593019208136eafe55971bdc22e94fc6f4ec89 Mon Sep 17 00:00:00 2001 From: "matej.vukosav" Date: Fri, 8 Nov 2024 20:26:10 +0700 Subject: [PATCH] fix: proxy contract selection --- crates/context/src/lib.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/crates/context/src/lib.rs b/crates/context/src/lib.rs index c80351586..f8eb49938 100644 --- a/crates/context/src/lib.rs +++ b/crates/context/src/lib.rs @@ -1083,9 +1083,13 @@ impl ContextManager { .mutate::( context_config.protocol.as_ref().into(), context_config.network.as_ref().into(), - context_config.contract.as_ref().into(), + context_config.proxy_contract.as_ref().into(), + ) + .propose( + proposal_id, + signer_id.rt().expect("infallible conversion"), + actions, ) - .propose(proposal_id, signer_id.rt().unwrap(), actions) .send(signing_key) .await?; @@ -1116,9 +1120,9 @@ impl ContextManager { .mutate::( context_config.protocol.as_ref().into(), context_config.network.as_ref().into(), - context_config.contract.as_ref().into(), + context_config.proxy_contract.as_ref().into(), ) - .approve(signer_id.rt().unwrap(), proposal_id) + .approve(signer_id.rt().expect("infallible conversion"), proposal_id) .send(signing_key) .await?;