|
@@ -59,7 +59,8 @@ describe('Base operation test', () => {
|
|
|
gasPrice: web3.utils.toWei('2', 'gwei'),
|
|
gasPrice: web3.utils.toWei('2', 'gwei'),
|
|
|
gasLimit: 1_000_000
|
|
gasLimit: 1_000_000
|
|
|
}
|
|
}
|
|
|
- await weth_contract.methods.approve(contracts.UNIV3, 1e9).send(rawTx).then(console.log)
|
|
|
|
|
|
|
+
|
|
|
|
|
+ await weth_contract.methods.approve(contracts.UNIV3, 1e18.toString()).send(rawTx).then(console.log)
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
it('Univ3 swap test', async () => {
|
|
it('Univ3 swap test', async () => {
|