diff --git a/chain-signatures/contract/src/lib.rs b/chain-signatures/contract/src/lib.rs index 01315435d..330aac1ec 100644 --- a/chain-signatures/contract/src/lib.rs +++ b/chain-signatures/contract/src/lib.rs @@ -728,7 +728,10 @@ impl VersionedMpcContract { ) -> Result { match self { Self::V0(_) => match signature { - SignatureResult::Ok(signature) => Ok(signature), + SignatureResult::Ok(signature) => { + log!("Signature is ready."); + Ok(signature) + } SignatureResult::Err(_) => Err(MpcContractError::SignError(SignError::Timeout)), }, } diff --git a/load-tests/src/fastauth/mod.rs b/load-tests/src/fastauth/mod.rs index cb59c784c..02d0f7a54 100644 --- a/load-tests/src/fastauth/mod.rs +++ b/load-tests/src/fastauth/mod.rs @@ -47,7 +47,8 @@ pub async fn prepare_user_credentials(user: &mut GooseUser) -> TransactionResult let subaccount = root_account .create_subaccount(&format!("user-{}", rand::random::())) - .initial_balance(NearToken::from_yoctonear(200000000000000000000000u128)) + // Balance this values depending on how many users you want to create and available balance + .initial_balance(NearToken::from_near(10)) .transact() .await .unwrap() diff --git a/load-tests/src/multichain/mod.rs b/load-tests/src/multichain/mod.rs index d9e3af9be..4baafcac2 100644 --- a/load-tests/src/multichain/mod.rs +++ b/load-tests/src/multichain/mod.rs @@ -28,8 +28,7 @@ pub async fn multichain_sign(user: &mut GooseUser) -> TransactionResult { .get_session_data::() .expect("Session Data must be set"); - let multichain_contract_id = - AccountId::try_from("v5.multichain-mpc-dev.testnet".to_string()).unwrap(); + let multichain_contract_id = AccountId::try_from("v1.signer-dev.testnet".to_string()).unwrap(); let testnet_rpc_url = "https://rpc.testnet.near.org".to_string(); let signer = InMemorySigner { @@ -69,7 +68,7 @@ pub async fn multichain_sign(user: &mut GooseUser) -> TransactionResult { })) .unwrap(), gas: 300_000_000_000_000, - deposit: 1, + deposit: 1, // attach more if you are ok with going above "CHEAP_REQUESTS" limit })], }; @@ -107,7 +106,7 @@ pub async fn multichain_sign(user: &mut GooseUser) -> TransactionResult { tracing::info!("goose_response: {:?}", rsp); - let expected_log = "sign_helper: signature ready"; + let expected_log = "Signature is ready."; let validate = &Validate::builder() .status(200) diff --git a/load-tests/src/multichain/test_plans/short.txt b/load-tests/src/multichain/test_plans/short.txt index 276260e51..79e9ad0e7 100644 --- a/load-tests/src/multichain/test_plans/short.txt +++ b/load-tests/src/multichain/test_plans/short.txt @@ -1 +1 @@ -0,0s;5,30s;5,20m;0,0s \ No newline at end of file +0,0s;1,30s;1,10m;0,0s \ No newline at end of file