Skip to content

Commit

Permalink
Use ContractId::zero
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoplavkov committed Oct 4, 2024
1 parent 72e91be commit 2d1127f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/add_liquidity_script/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use utils::blockchain_utils::check_deadline;
use std::asset::transfer;

configurable {
AMM_CONTRACT_ID: ContractId = ContractId::from(0x0000000000000000000000000000000000000000000000000000000000000000),
AMM_CONTRACT_ID: ContractId = ContractId::zero(),
}

fn main(
Expand Down
2 changes: 1 addition & 1 deletion scripts/create_pool_and_add_liquidity_script/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::asset::transfer;
use utils::blockchain_utils::check_deadline;

configurable {
AMM_CONTRACT_ID: ContractId = ContractId::from(0x0000000000000000000000000000000000000000000000000000000000000000),
AMM_CONTRACT_ID: ContractId = ContractId::zero(),
}

fn main(
Expand Down
2 changes: 1 addition & 1 deletion scripts/remove_liquidity_script/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use utils::blockchain_utils::{check_deadline, get_lp_asset};
use std::asset::transfer;

configurable {
AMM_CONTRACT_ID: ContractId = ContractId::from(0x0000000000000000000000000000000000000000000000000000000000000000),
AMM_CONTRACT_ID: ContractId = ContractId::zero(),
}

fn main(
Expand Down
2 changes: 1 addition & 1 deletion scripts/swap_exact_input_script/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use utils::blockchain_utils::check_deadline;
use std::{asset::transfer, bytes::Bytes};

configurable {
AMM_CONTRACT_ID: ContractId = ContractId::from(0x0000000000000000000000000000000000000000000000000000000000000000),
AMM_CONTRACT_ID: ContractId = ContractId::zero(),
}

fn main(
Expand Down
2 changes: 1 addition & 1 deletion scripts/swap_exact_output_script/src/main.sw
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use utils::blockchain_utils::check_deadline;
use std::{asset::transfer, bytes::Bytes};

configurable {
AMM_CONTRACT_ID: ContractId = ContractId::from(0x0000000000000000000000000000000000000000000000000000000000000000),
AMM_CONTRACT_ID: ContractId = ContractId::zero(),
}

fn main(
Expand Down

0 comments on commit 2d1127f

Please sign in to comment.