My client app (nodejs) packs some arguments to pass to a smart contracts as bytes _data
(similar to ERC223 calls with fallback). I pack the arguments in my JS client like this:
const packedArgs = web3.eth.abi.encodeParameters(['uint256', 'string'], ['123', 'Hello world']);`
When the solidity function gets that bytes
argument, how does it unpack it back to uint256
and string
?