11 web3.php调用合约bytes类型传值失败

使用web3.php给合约参数类型为bytes传参数,php应该用什么类型呢?string传不进去,是空。

question.png code.png

"constant": false,
    "inputs": [{
        "name": "addrs",
        "type": "address[14]"
    }, {
        "name": "uints",
        "type": "uint256[18]"
    }, {
        "name": "feeMethodsSidesKindsHowToCalls",
        "type": "uint8[8]"
    }, {
        "name": "calldataBuy",
        "type": "bytes"
    }, {
        "name": "calldataSell",
        "type": "bytes"
    }, {
        "name": "replacementPatternBuy",
        "type": "bytes"
    }, {
        "name": "replacementPatternSell",
        "type": "bytes"
    }, {
        "name": "staticExtradataBuy",
        "type": "bytes"
    }, {
        "name": "staticExtradataSell",
        "type": "bytes"
    }, {
        "name": "vs",
        "type": "uint8[2]"
    }, {
        "name": "rssMetadata",
        "type": "bytes32[5]"
    }],
    "name": "atomicMatch_",
    "outputs": [],
    "payable": true,
    "stateMutability": "payable",
    "type": "function"
}
请先 登录 后评论

2 个回答

Tiny熊 - 布道者
  擅长:智能合约,以太坊
请先 登录 后评论
幼本肄业
请先 登录 后评论
  • 2 关注
  • 0 收藏,2718 浏览
  • 幼本肄业 提出于 2021-10-19 23:45

相似问题