Skip to content

Commit

Permalink
fix all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tubackkhoa committed Aug 28, 2024
1 parent 4a0b9ea commit 68bd423
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions contracts/oraiswap-v3/src/tests/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,13 @@ pub mod macros {

macro_rules! create_3_tokens {
($app:ident, $token_x_supply:expr, $token_y_supply:expr,$token_z_supply:expr, $owner: tt) => {{
let token_x = $app.create_token($owner, "tokenx", $token_x_supply);
let token_y = $app.create_token($owner, "tokeny", $token_y_supply);
let token_z = $app.create_token($owner, "tokenz", $token_y_supply);
(token_x, token_y, token_z)
let mut tokens = [
$app.create_token($owner, "tokenx", $token_x_supply),
$app.create_token($owner, "tokeny", $token_y_supply),
$app.create_token($owner, "tokenz", $token_y_supply),
];
tokens.sort();
(tokens[0].clone(), tokens[1].clone(), tokens[2].clone())
}};
($app:ident, $token_x_supply:expr, $token_y_supply:expr,$token_z_supply:expr,$owner:tt) => {{
create_3_tokens!(
Expand Down

0 comments on commit 68bd423

Please sign in to comment.