parseAddress

签名

function parseAddress(string calldata stringifiedValue) external pure returns (address parsedValue);

描述

string的值解析为address

例子

string memory addressAsString = "0x0000000000000000000000000000000000000000";
address stringToAddress = vm.parseAddress(addressAsString); // 0x0000000000000000000000000000000000000000