Sfoglia il codice sorgente

exactInput 测试 OK

skyfffire 3 anni fa
parent
commit
b11c662887
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      test/BaseOperationTest.ts

+ 2 - 1
test/BaseOperationTest.ts

@@ -59,7 +59,8 @@ describe('Base operation test', () => {
       gasPrice: web3.utils.toWei('2', 'gwei'),
       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 () => {