Skip to content

Commit 4648d88

Browse files
committed
refactor(uniswapV3Wrapper): update error handling and remove unused IAssetManager import
1 parent 246c3e7 commit 4648d88

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/developer-hub-javascript/uniswapV3Wrapper.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { ERC20Instance } from "../../typechain-types/@openzeppelin/contracts/tok
88
// yarn hardhat run scripts/fassets/uniswapV3Wrapper.ts --network flare
99

1010
// 1. Contract artifacts
11-
const IAssetManager = artifacts.require("IAssetManager");
1211
const UniswapV3Wrapper = artifacts.require("UniswapV3Wrapper");
1312
const ERC20 = artifacts.require("ERC20");
1413

@@ -41,7 +40,7 @@ async function deployAndVerifyContract() {
4140
address: uniswapV3WrapperAddress,
4241
constructorArguments: args,
4342
});
44-
} catch (e: any) {
43+
} catch (e: unknown) {
4544
console.log(e);
4645
}
4746

@@ -156,7 +155,7 @@ async function main() {
156155

157156
console.log("Transaction submitted:", swapTx);
158157

159-
const swapReceipt = await swapTx.receipt;
158+
await swapTx.receipt;
160159
console.log("✅ SparkDEX swap executed successfully!");
161160

162161
// 17. Extract amount out from events or calculate from balance change

0 commit comments

Comments
 (0)