@@ -637,7 +637,10 @@ impl MultisigGovernance {
637637
638638 #[ ink( message) ]
639639 pub fn approve_proposal ( & mut self , proposal_id : u64 ) -> Result < ( ) , String > {
640- let mut proposal = self . proposals . get ( proposal_id) . ok_or ( "Proposal not found" ) ?;
640+ let mut proposal = self
641+ . proposals
642+ . get ( proposal_id)
643+ . ok_or ( "Proposal not found" ) ?;
641644 let current_ledger = Self :: current_ledger ( ) ;
642645
643646 if current_ledger > proposal. expires_at {
@@ -655,7 +658,10 @@ impl MultisigGovernance {
655658
656659 #[ ink( message) ]
657660 pub fn finalize_proposal ( & mut self , proposal_id : u64 ) -> Result < ( ) , String > {
658- let mut proposal = self . proposals . get ( proposal_id) . ok_or ( "Proposal not found" ) ?;
661+ let mut proposal = self
662+ . proposals
663+ . get ( proposal_id)
664+ . ok_or ( "Proposal not found" ) ?;
659665 let current_ledger = Self :: current_ledger ( ) ;
660666
661667 if current_ledger > proposal. expires_at {
@@ -674,7 +680,10 @@ impl MultisigGovernance {
674680
675681 #[ ink( message) ]
676682 pub fn cancel_expired_proposal ( & mut self , proposal_id : u64 ) -> Result < ( ) , String > {
677- let proposal = self . proposals . get ( proposal_id) . ok_or ( "Proposal not found" ) ?;
683+ let proposal = self
684+ . proposals
685+ . get ( proposal_id)
686+ . ok_or ( "Proposal not found" ) ?;
678687 let current_ledger = Self :: current_ledger ( ) ;
679688
680689 if current_ledger <= proposal. expires_at {
0 commit comments