I have a solidity function which looks like this-
function issueCertificate(address _recipient, bytes32 _certi_name)
When I call the function using truffle console, I am able to run it using-
issueCertificate("0x0213e3852b8afeb08929a0f448f2f693b0fc3ebe", "random")
But when I run it using web3 and forms with same data in string format, it gives error-
Error: Given parameter is not bytes: "random"