Hey guys. I am trying to generate the function signature of erc1155's safeTransferFrom().
apparently the function signature that I have generated is not correct. can someone help me? thank you in advance.
I am generating signature using this code:
bytes4(keccak256(bytes("safeTransferFrom(address,address,uint256,uint256,bytes")));
but the call function returns false:
(bool success, bytes memory data) = token.call(
abi.encodeWithSelector(0xe2adc913, from, to, tokenId, amount, data)
);
May 3, 2022, 11:19 AM