diff --git a/examples/swap/hardhat.config.ts b/examples/swap/hardhat.config.ts index 32a1790..8a31c48 100644 --- a/examples/swap/hardhat.config.ts +++ b/examples/swap/hardhat.config.ts @@ -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"; @@ -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" }], }, }; diff --git a/examples/swap/scripts/localnet.sh b/examples/swap/scripts/localnet.sh index 5b7ada9..c46b0d4 100755 --- a/examples/swap/scripts/localnet.sh +++ b/examples/swap/scripts/localnet.sh @@ -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 \ @@ -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 \ diff --git a/examples/swap/tasks/evmGatewaySwap.ts b/examples/swap/tasks/evmSwap.ts similarity index 97% rename from examples/swap/tasks/evmGatewaySwap.ts rename to examples/swap/tasks/evmSwap.ts index 2c591ab..860d47b 100644 --- a/examples/swap/tasks/evmGatewaySwap.ts +++ b/examples/swap/tasks/evmSwap.ts @@ -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",