5 polygon uniswap v3 0x0c命令报错

image.png

let xxxContract = new this.Web3.eth.Contract(xxx_abi, '0x4C60051384bd2d3C01bfc845Cf5F4b44bcbE9de5');
        // let data = ['0x00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000001fd7df6bfea0c500000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002bc2132d05d31c914a87c6611c10748aeb04b58e8f0001f40d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000','0x000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000032617a2c07013']
        let data = ['0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000002d79883d20000']

        let times = Date.parse(new Date());
        let deadline = new this.Decimal(times).div(1000).add(500).toString();

        let fromData = {from:user_address}
        // let gas = await xxxContract.methods.execute(0x00, data, deadline).estimateGas(fromData);
        // fromData.gas = gas;

        xxxContract.methods.execute(0x0c, data, deadline).send(fromData).then(res => {

        })

兑换主链币使用0x0c 和0x000c命令都报错,但普通代币0x00命令又没问题,有没有大佬知道是什么情况,请指点一下,谢谢

请先 登录 后评论

1 个回答

Tiny熊
  擅长:智能合约,以太坊
请先 登录 后评论
  • 1 关注
  • 0 收藏,1853 浏览
  • 用户_14041 提出于 2023-04-08 14:55