소스 검색

exactInput 测试 OK

skyfffire 3 년 전
부모
커밋
b11c662887
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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 () => {