diff --git a/common/nym_offline_compact_ecash/src/scheme/identify.rs b/common/nym_offline_compact_ecash/src/scheme/identify.rs index 1dd2779137..efc0e102f7 100644 --- a/common/nym_offline_compact_ecash/src/scheme/identify.rs +++ b/common/nym_offline_compact_ecash/src/scheme/identify.rs @@ -72,8 +72,9 @@ mod tests { let total_coins = 32; let params = Parameters::new(total_coins); // NOTE: Make sure that the date timestamp are calculated at 00:00:00!! - let expiration_date = 1703721600; // Dec 28 2023 00:00:00 let spend_date = 1701907200; // Dec 07 2023 00:00:00 + let expiration_date = 1702166400; // Dec 10 2023 00:00:00 + let user_keypair = generate_keypair_user(); let (req, req_info) = @@ -179,8 +180,9 @@ mod tests { let total_coins = 32; let params = Parameters::new(total_coins); // NOTE: Make sure that the date timestamp are calculated at 00:00:00!! - let expiration_date = 1703721600; // Dec 28 2023 00:00:00 let spend_date = 1701907200; // Dec 07 2023 00:00:00 + let expiration_date = 1702166400; // Dec 10 2023 00:00:00 + let user_keypair = generate_keypair_user(); let (req, req_info) = @@ -302,8 +304,9 @@ mod tests { let params = Parameters::new(total_coins); let grp = params.grp(); // NOTE: Make sure that the date timestamp are calculated at 00:00:00!! - let expiration_date = 1703721600; // Dec 28 2023 00:00:00 let spend_date = 1701907200; // Dec 07 2023 00:00:00 + let expiration_date = 1702166400; // Dec 10 2023 00:00:00 + let user_keypair = generate_keypair_user(); // GENERATE KEYS FOR OTHER USERS @@ -442,8 +445,9 @@ mod tests { let params = Parameters::new(total_coins); let grp = params.grp(); // NOTE: Make sure that the date timestamp are calculated at 00:00:00!! - let expiration_date = 1703721600; // Dec 28 2023 00:00:00 let spend_date = 1701907200; // Dec 07 2023 00:00:00 + let expiration_date = 1702166400; // Dec 10 2023 00:00:00 + let user_keypair = generate_keypair_user(); // GENERATE KEYS FOR OTHER USERS diff --git a/common/nym_offline_compact_ecash/src/tests/e2e.rs b/common/nym_offline_compact_ecash/src/tests/e2e.rs index 1ce1f84b08..7db20a03bf 100644 --- a/common/nym_offline_compact_ecash/src/tests/e2e.rs +++ b/common/nym_offline_compact_ecash/src/tests/e2e.rs @@ -22,8 +22,8 @@ mod tests { let total_coins = 32; let params = Parameters::new(total_coins); // NOTE: Make sure that the date timestamp are calculated at 00:00:00!! - let expiration_date = 1703721600; // Dec 28 2023 00:00:00 let spend_date = 1701907200; // Dec 07 2023 00:00:00 + let expiration_date = 1702166400; // Dec 10 2023 00:00:00 let user_keypair = generate_keypair_user(); // generate authorities keys diff --git a/contracts/ecash/src/contract/test.rs b/contracts/ecash/src/contract/test.rs index 6ea55e8f2e..0a90c0b542 100644 --- a/contracts/ecash/src/contract/test.rs +++ b/contracts/ecash/src/contract/test.rs @@ -3,7 +3,7 @@ use crate::contract::NymEcashContract; use cosmwasm_std::testing::{mock_dependencies, mock_env, mock_info, MockApi, MockQuerier}; -use cosmwasm_std::{Addr, Empty, Env, MemoryStorage, OwnedDeps}; +use cosmwasm_std::{coin, Addr, Empty, Env, MemoryStorage, OwnedDeps}; use sylvia::types::{InstantiateCtx, QueryCtx}; pub const TEST_DENOM: &str = "unym"; @@ -37,7 +37,7 @@ impl TestSetup { holding.to_string(), multisig_contract.to_string(), group_contract.to_string(), - TEST_DENOM.to_string(), + coin(75000000, TEST_DENOM), ) .unwrap(); diff --git a/contracts/ecash/src/multitest.rs b/contracts/ecash/src/multitest.rs index 5baf8032db..de56796089 100644 --- a/contracts/ecash/src/multitest.rs +++ b/contracts/ecash/src/multitest.rs @@ -1,7 +1,7 @@ // Copyright 2024 - Nym Technologies SA // SPDX-License-Identifier: Apache-2.0 -use cosmwasm_std::{Addr, Coin}; +use cosmwasm_std::{coin, Addr, Coin}; use cw_utils::PaymentError; use nym_ecash_contract_common::EcashContractError; use sylvia::{cw_multi_test::App as MtApp, multitest::App}; @@ -35,7 +35,7 @@ fn invalid_deposit() { "holding_acount".to_string(), "multisig_addr".to_string(), "group_addr".to_string(), - denom.to_string(), + coin(75000000, denom), ) .call(owner) .unwrap();