Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 476 Bytes

parse-bytes32.md

File metadata and controls

18 lines (12 loc) · 476 Bytes

parseBytes32

Signature

function parseBytes32(string calldata stringifiedValue) external pure returns (bytes32 parsedValue);

Description

Parses the value of string into bytes32

Examples

string memory bytes32AsString = "0x0000000000000000000000000000000000000000000000000000000000000000";
bytes32 stringToBytes32 = vm.parseBytes32(bytes32AsString); // 0x0000000000000000000000000000000000000000000000000000000000000000