From 045e0a1fd4944862fc11ad0fd7c0e000119c656e Mon Sep 17 00:00:00 2001 From: alexey Date: Fri, 23 Dec 2022 23:46:44 +0000 Subject: [PATCH] :hand_ok: added placeholders --- tests/testnet_tests/initialize.rs | 2 +- tests/testnet_tests/market_interact.rs | 2 +- tests/testnet_tests/mint.rs | 2 +- tests/testnet_tests/mod.rs | 1 - tests/testnet_tests/transfer.rs | 6 +++--- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/testnet_tests/initialize.rs b/tests/testnet_tests/initialize.rs index 61d9ace..311e30a 100644 --- a/tests/testnet_tests/initialize.rs +++ b/tests/testnet_tests/initialize.rs @@ -2,7 +2,7 @@ use fuels::prelude::*; use crate::utils::{number_utils::*, testnet_tests_utils::*}; -const ADDRESS: &str = "0x777923117c7772c0680806d2a0d3a0eb5e654fa65e48d8de85516f6f85ba4887"; +const ADDRESS: &str = "YOUR TOKEN ADDRESS"; #[tokio::test] async fn initialize() { diff --git a/tests/testnet_tests/market_interact.rs b/tests/testnet_tests/market_interact.rs index c3ac217..9d91442 100644 --- a/tests/testnet_tests/market_interact.rs +++ b/tests/testnet_tests/market_interact.rs @@ -5,7 +5,7 @@ use crate::utils::{testnet_tests_utils::setup, number_utils::parse_units}; abigen!(Market, "tests/artefacts/market/market-abi.json"); -const USDT_ADDRESS: &str = "0x777923117c7772c0680806d2a0d3a0eb5e654fa65e48d8de85516f6f85ba4887"; +const USDT_ADDRESS: &str = "YOUR TOKEN ADDRESS"; const MARKET_ADDRESS: &str = "0xabc9873302b555db02ad2e79a4afb6b1d2acbab1bf4fe08149aff8fc904a8e0c"; #[tokio::test] diff --git a/tests/testnet_tests/mint.rs b/tests/testnet_tests/mint.rs index ddcd938..fd426cd 100644 --- a/tests/testnet_tests/mint.rs +++ b/tests/testnet_tests/mint.rs @@ -3,7 +3,7 @@ use std::str::FromStr; use crate::utils::{testnet_tests_utils::setup, number_utils::*}; -const USDT_ADDRESS: &str = "0x777923117c7772c0680806d2a0d3a0eb5e654fa65e48d8de85516f6f85ba4887"; +const USDT_ADDRESS: &str = "YOUR TOKEN ADDRESS"; #[tokio::test] async fn mint() { diff --git a/tests/testnet_tests/mod.rs b/tests/testnet_tests/mod.rs index b8e2533..0f681d4 100644 --- a/tests/testnet_tests/mod.rs +++ b/tests/testnet_tests/mod.rs @@ -1,4 +1,3 @@ -// mod setup; mod deploy; mod initialize; mod mint; diff --git a/tests/testnet_tests/transfer.rs b/tests/testnet_tests/transfer.rs index 5a573cb..c97d0ec 100644 --- a/tests/testnet_tests/transfer.rs +++ b/tests/testnet_tests/transfer.rs @@ -3,16 +3,16 @@ use std::str::FromStr; use crate::utils::{number_utils::*, testnet_tests_utils::setup}; -const USDT_ADDRESS: &str = "0x777923117c7772c0680806d2a0d3a0eb5e654fa65e48d8de85516f6f85ba4887"; +const TOKEN_ADDRESS: &str = "YOUR TOKEN ADDRESS"; const RECIPIEND_ADDRES: &str = "fuel1v3hdp7mpsy3mnsdy4jhwt4yk67n3yqgrn6mt0d4v3wvny2dn7f7sgf3ymm"; #[tokio::test] async fn transfer() { - let (wallet, dapp, provider) = setup(USDT_ADDRESS).await; + let (wallet, dapp, provider) = setup(TOKEN_ADDRESS).await; let config = dapp.methods().config().simulate().await.unwrap().value; let decimals = config.decimals; let symbol = config.symbol; - let asset_id = AssetId::from_str(USDT_ADDRESS).unwrap(); + let asset_id = AssetId::from_str(TOKEN_ADDRESS).unwrap(); println!("Decimals: {decimals}\nSymbol: {symbol}");