From 2d1127fc98f5ad480e63de3bee4bc7d59419fad1 Mon Sep 17 00:00:00 2001 From: mpoplavkov Date: Fri, 4 Oct 2024 17:12:54 +0200 Subject: [PATCH] Use ContractId::zero --- scripts/add_liquidity_script/src/main.sw | 2 +- scripts/create_pool_and_add_liquidity_script/src/main.sw | 2 +- scripts/remove_liquidity_script/src/main.sw | 2 +- scripts/swap_exact_input_script/src/main.sw | 2 +- scripts/swap_exact_output_script/src/main.sw | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/add_liquidity_script/src/main.sw b/scripts/add_liquidity_script/src/main.sw index db65bdb..d9a83d3 100644 --- a/scripts/add_liquidity_script/src/main.sw +++ b/scripts/add_liquidity_script/src/main.sw @@ -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( diff --git a/scripts/create_pool_and_add_liquidity_script/src/main.sw b/scripts/create_pool_and_add_liquidity_script/src/main.sw index 4a50604..6c9f630 100644 --- a/scripts/create_pool_and_add_liquidity_script/src/main.sw +++ b/scripts/create_pool_and_add_liquidity_script/src/main.sw @@ -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( diff --git a/scripts/remove_liquidity_script/src/main.sw b/scripts/remove_liquidity_script/src/main.sw index de0c496..97babcd 100644 --- a/scripts/remove_liquidity_script/src/main.sw +++ b/scripts/remove_liquidity_script/src/main.sw @@ -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( diff --git a/scripts/swap_exact_input_script/src/main.sw b/scripts/swap_exact_input_script/src/main.sw index 0fcb321..9d457ee 100644 --- a/scripts/swap_exact_input_script/src/main.sw +++ b/scripts/swap_exact_input_script/src/main.sw @@ -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( diff --git a/scripts/swap_exact_output_script/src/main.sw b/scripts/swap_exact_output_script/src/main.sw index 9d87a2e..2ffc62d 100644 --- a/scripts/swap_exact_output_script/src/main.sw +++ b/scripts/swap_exact_output_script/src/main.sw @@ -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(