Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 410 Bytes

parse-bytes.md

File metadata and controls

20 lines (12 loc) · 410 Bytes

parseBytes

Signature

function parseBytes(string calldata stringifiedValue) external pure returns (bytes memory parsedValue);

Description

Parses the value of string into bytes

Examples

string memory bytesAsString = "0x00000000000000000000000000000000";
bytes memory stringToBytes = vm.parseBytes(bytesAsString); // 0x00000000000000000000000000000000