keyExistsToml
Signature
Section titled “Signature”// Check if a key exists in a TOML table.vm.keyExistsToml(string memory toml, string memory key) returns (bool)Description
Section titled “Description”Checks if a key exists in a TOML table.
Examples
Section titled “Examples”string memory path = "./path/to/tomlfile.toml";string memory toml = vm.readFile(path);bool exists = vm.keyExistsToml(toml, ".key");assertTrue(exists);