I'm trying to call a method in a contract and the method is like this:
function myMethod(uint8 tid, bytes calldata _bytes)
public
view
returns (string memory)
{ ... }
I'm using Web3.js to call the methods and I have done successful ones on other methods but I can't find a way to pass bytes data to call this method. I would appreciate it if you could help me.