frank
frank
Can you give me you transaction hash ? I will check.
From the txHash, I see you transfer ARES token to contract address, Your To address is error.
you can send tx like this https://github.com/truechain/truechain-engineering-code/blob/aea829b22868b394ae616ff82d6319d1886e69ae/cmd/impawn/query_stake.go#L188 . which is send tx with go.
``` INFO [12-28|17:32:10.226] Peer connected success id=f684c0103dee129e conn=dyndial name=Getrue/v0.9.5-unstable-823c5548/linux-amd64/go1.10.4 RemoteAddr=192.144.141.61:30313 INFO [12-28|17:32:10.631] pm_synchronise pTd=189049816 td=183692516 NumberU64=11234 INFO [12-28|17:32:13.966] pm_synchronise pTd=189049816 td=183692516 NumberU64=11234 INFO [12-28|17:32:13.966] pm_synchronise pTd=189049816 td=183692516 NumberU64=11234 INFO [12-28|17:32:13.967]...
``` bytes memory bytecode = type(UniswapV2Pair).creationCode; bytes32 salt = keccak256(abi.encodePacked(token0, token1)); assembly { pair := create2(0, add(bytecode, 32), mload(bytecode), salt) } ``` ``` pair = address(uint(keccak256(abi.encodePacked( hex'ff', factory, keccak256(abi.encodePacked(token0, token1)),...
添加不了流动性报的什么错误,合约执行的错误可以帮忙看下,前端页面就帮助不了了。最近比较忙,没时间学前端。 @jackorjorn
用这个[https://github.com/D-CDC/go-uniswap/blob/master/contracts/deployUniswap/tx_test.go#L40]()例子测试下你的交易把,把交易参数填充下,可以获得执行结果。 @jackorjorn