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

幼本肄业 幼本肄业 提出于 2021-10-19 23:45 5919 浏览

使用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熊 2021-10-20 09:03

擅长:智能合约,以太坊

幼本肄业 2021-10-20 21:01

写回答

你需要登录后才可以回答问题,登录