From 294a8b2347bcf8c5cc892803f3c73cc92cd78efa Mon Sep 17 00:00:00 2001 From: Konstantin Fastov Date: Mon, 2 Dec 2024 15:31:16 +0700 Subject: [PATCH] tests: fix memecoin variable used before declaration --- onchain/cairo/src/tests/liquidity_tests.cairo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onchain/cairo/src/tests/liquidity_tests.cairo b/onchain/cairo/src/tests/liquidity_tests.cairo index 9ffbad22..00f96b09 100644 --- a/onchain/cairo/src/tests/liquidity_tests.cairo +++ b/onchain/cairo/src/tests/liquidity_tests.cairo @@ -435,10 +435,10 @@ mod liquidity_tests { println!("token_address unrug lp withouth launch curve: {:?}", token_address); // start_cheat_caller_address(token_address, launchpad.contract_address); - start_cheat_caller_address(memecoin.contract_address, OWNER()); - let memecoin = IERC20Dispatcher { contract_address: token_address }; + start_cheat_caller_address(memecoin.contract_address, OWNER()); + let amount_meme_supply_liq = DEFAULT_INITIAL_SUPPLY() / LIQUIDITY_RATIO; let lp_meme_supply = amount_meme_supply_liq.clone();