File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
examples/developer-hub-javascript Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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" ) ;
1211const UniswapV3Wrapper = artifacts . require ( "UniswapV3Wrapper" ) ;
1312const 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
You can’t perform that action at this time.
0 commit comments