Skip to content

Commit

Permalink
:hand_ok: added placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey committed Dec 23, 2022
1 parent 3ddb210 commit 045e0a1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/testnet_tests/initialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion tests/testnet_tests/market_interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/testnet_tests/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion tests/testnet_tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// mod setup;
mod deploy;
mod initialize;
mod mint;
Expand Down
6 changes: 3 additions & 3 deletions tests/testnet_tests/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");

Expand Down

0 comments on commit 045e0a1

Please sign in to comment.