Solidity, Smart Contracts.
} function decode(bytes memory data) public pure returns (string memory _str1, uint _number, string memory _str2) { (_str1, _number, _str2) = abi.decode(data, (string, uint, string)); } } Deploying, then calling the function encode(…) with the following parameters (João, 3, Paulo), we have the