mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -127,8 +127,8 @@ pub mod pallet {
|
||||
/// The currency mechanism.
|
||||
type Currency: ReservableCurrency<Self::AccountId>;
|
||||
|
||||
/// The base amount of currency needed to reserve for creating a multisig execution or to store
|
||||
/// a dispatch call for later.
|
||||
/// The base amount of currency needed to reserve for creating a multisig execution or to
|
||||
/// store a dispatch call for later.
|
||||
///
|
||||
/// This is held for an additional storage item whose value size is
|
||||
/// `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
|
||||
@@ -333,9 +333,8 @@ pub mod pallet {
|
||||
/// - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
|
||||
/// - One event.
|
||||
/// - The weight of the `call`.
|
||||
/// - Storage: inserts one item, value size bounded by `MaxSignatories`, with a
|
||||
/// deposit taken for its lifetime of
|
||||
/// `DepositBase + threshold * DepositFactor`.
|
||||
/// - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
/// taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
/// -------------------------------
|
||||
/// - DB Weight:
|
||||
/// - Reads: Multisig Storage, [Caller Account], Calls (if `store_call`)
|
||||
@@ -400,9 +399,8 @@ pub mod pallet {
|
||||
/// - Up to one binary search and insert (`O(logS + S)`).
|
||||
/// - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
|
||||
/// - One event.
|
||||
/// - Storage: inserts one item, value size bounded by `MaxSignatories`, with a
|
||||
/// deposit taken for its lifetime of
|
||||
/// `DepositBase + threshold * DepositFactor`.
|
||||
/// - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
|
||||
/// taken for its lifetime of `DepositBase + threshold * DepositFactor`.
|
||||
/// ----------------------------------
|
||||
/// - DB Weight:
|
||||
/// - Read: Multisig Storage, [Caller Account]
|
||||
|
||||
@@ -812,8 +812,9 @@ fn weight_check_works() {
|
||||
|
||||
#[test]
|
||||
fn multisig_handles_no_preimage_after_all_approve() {
|
||||
// This test checks the situation where everyone approves a multi-sig, but no-one provides the call data.
|
||||
// In the end, any of the multisig callers can approve again with the call data and the call will go through.
|
||||
// This test checks the situation where everyone approves a multi-sig, but no-one provides the
|
||||
// call data. In the end, any of the multisig callers can approve again with the call data and
|
||||
// the call will go through.
|
||||
new_test_ext().execute_with(|| {
|
||||
let multi = Multisig::multi_account_id(&[1, 2, 3][..], 3);
|
||||
assert_ok!(Balances::transfer(Origin::signed(1), multi, 5));
|
||||
|
||||
Reference in New Issue
Block a user