Skip to content

Commit

Permalink
fix: proxy contract selection
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejVukosav committed Nov 8, 2024
1 parent b774674 commit a859301
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions crates/context/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1083,9 +1083,13 @@ impl ContextManager {
.mutate::<ContextProxy>(
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?;

Expand Down Expand Up @@ -1116,9 +1120,9 @@ impl ContextManager {
.mutate::<ContextProxy>(
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?;

Expand Down

0 comments on commit a859301

Please sign in to comment.