Skip to content

Commit

Permalink
fix: add signature for bytes (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
odyslam authored Nov 11, 2022
1 parent f50a63a commit 33d4895
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/StdJson.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ library stdJson {
return vm.serializeBytes32(jsonKey, key, value);
}

function serialize(string memory jsonKey, string memory key, bytes memory value) internal returns (string memory) {
return vm.serializeBytes(jsonKey, key, value);
}

function serialize(string memory jsonKey, string memory key, bytes[] memory value)
internal
returns (string memory)
{
return vm.serializeBytes(jsonKey, key, value);
}

function serialize(string memory jsonKey, string memory key, string memory value)
internal
returns (string memory)
Expand Down

0 comments on commit 33d4895

Please sign in to comment.