Skip to content

Commit

Permalink
feat: add toString cheatcodes (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 committed Jul 7, 2022
1 parent b5c5a5c commit 6f3b43c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Vm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ interface Vm {
// - The user lacks permissions to remove the file.
// (path) => ()
function removeFile(string calldata) external;
// Convert values to a string, (value) => (stringified value)
function toString(address) external returns(string memory);
function toString(bytes calldata) external returns(string memory);
function toString(bytes32) external returns(string memory);
function toString(bool) external returns(string memory);
function toString(uint256) external returns(string memory);
function toString(int256) external returns(string memory);
// Record all the transaction logs
function recordLogs() external;
// Gets all the recorded logs, () => (logs)
Expand Down

0 comments on commit 6f3b43c

Please sign in to comment.