Skip to content

Commit

Permalink
rename task
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Dec 9, 2024
1 parent 6a6ba8f commit 9aa0027
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
11 changes: 2 additions & 9 deletions examples/swap/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "./tasks/deploy";
import "./tasks/companionSwap";
import "./tasks/deployCompanion";
import "./tasks/zetachainSwap";
import "./tasks/evmGatewaySwap";
import "./tasks/evmSwap";
import "@zetachain/localnet/tasks";
import "@nomicfoundation/hardhat-toolbox";
import "@zetachain/toolkit/tasks";
Expand All @@ -18,14 +18,7 @@ const config: HardhatUserConfig = {
...getHardhatConfigNetworks(),
},
solidity: {
compilers: [
{ version: "0.5.10" /** For create2 factory */ },
{ version: "0.6.6" /** For uniswap v2 router*/ },
{ version: "0.5.16" /** For uniswap v2 core*/ },
{ version: "0.4.19" /** For weth*/ },
{ version: "0.8.7" },
{ version: "0.8.26" },
],
compilers: [{ version: "0.8.20" }, { version: "0.8.26" }],
},
};

Expand Down
4 changes: 2 additions & 2 deletions examples/swap/scripts/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ npx hardhat companion-swap \

npx hardhat localnet-check

npx hardhat evm-gateway-swap \
npx hardhat evm-swap \
--network localhost \
--receiver "$CONTRACT_SWAP" \
--amount 1 \
Expand All @@ -51,7 +51,7 @@ npx hardhat evm-gateway-swap \

npx hardhat localnet-check

npx hardhat evm-gateway-swap \
npx hardhat evm-swap \
--network localhost \
--receiver "$CONTRACT_SWAP" \
--amount 1 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const evmDepositAndCall = async (
}
};

task("evm-gateway-swap", "Swap tokens from EVM", evmDepositAndCall)
task("evm-swap", "Swap tokens from EVM", evmDepositAndCall)
.addParam("receiver", "Receiver address on ZetaChain")
.addOptionalParam(
"gatewayEvm",
Expand Down

0 comments on commit 9aa0027

Please sign in to comment.