Skip to content

Commit 33d4895

Browse files
authored
fix: add signature for bytes (#218)
1 parent f50a63a commit 33d4895

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/StdJson.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ library stdJson {
144144
return vm.serializeBytes32(jsonKey, key, value);
145145
}
146146

147+
function serialize(string memory jsonKey, string memory key, bytes memory value) internal returns (string memory) {
148+
return vm.serializeBytes(jsonKey, key, value);
149+
}
150+
151+
function serialize(string memory jsonKey, string memory key, bytes[] memory value)
152+
internal
153+
returns (string memory)
154+
{
155+
return vm.serializeBytes(jsonKey, key, value);
156+
}
157+
147158
function serialize(string memory jsonKey, string memory key, string memory value)
148159
internal
149160
returns (string memory)

0 commit comments

Comments
 (0)