From 619c17b5049b378438e89951caa36d5e13f4a811 Mon Sep 17 00:00:00 2001 From: bkchr Date: Mon, 19 Feb 2024 00:50:22 +0000 Subject: [PATCH] deploy: bcca93886c04fc78da17056a155ebb1c9b2e12c2 --- new/0074-stateful-multisig-pallet.html | 45 ++++++++++++++------------ print.html | 45 ++++++++++++++------------ searchindex.js | 2 +- searchindex.json | 2 +- 4 files changed, 52 insertions(+), 42 deletions(-) diff --git a/new/0074-stateful-multisig-pallet.html b/new/0074-stateful-multisig-pallet.html index 3283d1b..6507b04 100644 --- a/new/0074-stateful-multisig-pallet.html +++ b/new/0074-stateful-multisig-pallet.html @@ -286,6 +286,14 @@ DAOs can utilize multisig accounts to ensure that decisions are made collectivel
  • Any multisig account owener can execute proposal if it's approved by enough signers. (Dave in the diagram)
  • State Transition Functions

    +

    having the following enum to store the call or the hash:

    +
    #![allow(unused)]
    +fn main() {
    +enum CallOrHash<T: Config> {
    +	Call(<T as Config>::RuntimeCall),
    +	Hash(T::Hash),
    +}
    +}
    @@ -327,7 +335,7 @@ DAOs can utilize multisig accounts to ensure that decisions are made collectivel /// # Arguments /// /// * `multisig_account` - The multisig account ID. - /// * `call` - The dispatchable call to be executed. + /// * `call_or_hash` - The enum having the call or the hash of the call to be approved and executed later. /// /// # Errors /// @@ -337,7 +345,7 @@ DAOs can utilize multisig accounts to ensure that decisions are made collectivel pub fn start_proposal( origin: OriginFor<T>, multisig_account: T::AccountId, - call_hash: T::Hash, + call_or_hash: CallOrHash, ) -> DispatchResult }