Skip to content

Commit

Permalink
feat: add vm.parseJsonKeys (#429)
Browse files Browse the repository at this point in the history
* Add parseJsonKeys

* forge fmt
  • Loading branch information
klkvr authored Aug 10, 2023
1 parent f18e8aa commit c0c6a42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Vm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ interface VmSafe {
function parseJsonBytes32(string calldata, string calldata) external returns (bytes32);
function parseJsonBytes32Array(string calldata, string calldata) external returns (bytes32[] memory);

// Returns array of keys for a JSON object
function parseJsonKeys(string calldata json, string calldata key) external returns (string[] memory keys);

// Serialize a key and value to a JSON object stored in-memory that can be later written to a file
// It returns the stringified version of the specific JSON file up to that moment.
function serializeBool(string calldata objectKey, string calldata valueKey, bool value)
Expand Down

0 comments on commit c0c6a42

Please sign in to comment.