diff --git a/aptos-move/framework/supra-framework/sources/multisig_account.move b/aptos-move/framework/supra-framework/sources/multisig_account.move index faa6f56ad3bca..c89ac56223cdd 100644 --- a/aptos-move/framework/supra-framework/sources/multisig_account.move +++ b/aptos-move/framework/supra-framework/sources/multisig_account.move @@ -1147,6 +1147,10 @@ module supra_framework::multisig_account { #[test_only] use std::string::utf8; use std::features; + #[test_only] + use supra_framework::coin::{destroy_mint_cap, destroy_burn_cap}; + #[test_only] + use supra_framework::supra_coin; #[test_only] const PAYLOAD: vector = vector[1, 2, 3]; @@ -1175,6 +1179,18 @@ module supra_framework::multisig_account { chain_id::initialize_for_test(framework_signer, 1); } + #[test_only] + fun setup_disabled() { + let framework_signer = &create_signer(@0x1); + features::change_feature_flags( + framework_signer, vector[], vector[features::get_multisig_accounts_feature()]); + timestamp::set_time_has_started_for_testing(framework_signer); + chain_id::initialize_for_test(framework_signer, 1); + let (burn, mint) = supra_coin::initialize_for_test(framework_signer); + destroy_mint_cap(mint); + destroy_burn_cap(burn); + } + #[test(owner_1 = @0x123, owner_2 = @0x124, owner_3 = @0x125)] public entry fun test_end_to_end( owner_1: &signer, owner_2: &signer, owner_3: &signer) acquires MultisigAccount { @@ -1289,8 +1305,9 @@ module supra_framework::multisig_account { #[expected_failure(abort_code = 0xD000E, location = Self)] public entry fun test_create_with_without_feature_flag_enabled_should_fail( owner: &signer) acquires MultisigAccount { + setup_disabled(); create_account(address_of(owner)); - create(owner, 2, vector[], vector[]); + create(owner, 1, vector[], vector[]); } #[test(owner_1 = @0x123, owner_2 = @0x124, owner_3 = @0x125)]