要调用的合约 function abcCall(bytes calldata data),需要传的参数是 address addr=0xaaaaaaaaaaaaaaaaaaaaaaaaaaa; uint amount=66666666666666; 怎么在solidity中吧他们组合成bytes
function abcCall(bytes calldata data)
address addr=0xaaaaaaaaaaaaaaaaaaaaaaaaaaa; uint amount=66666666666666;
data = abi.encode(addr, amount);
bytes memory data = abi.encode(addr, amount); 或者 bytes memory data = abi.encodePacked( uint256(uint160(addr)),amount);