From 33d4895fb629aabf12e0f60740367bd03e702bd1 Mon Sep 17 00:00:00 2001 From: "odysseas.eth" Date: Fri, 11 Nov 2022 15:02:23 -0500 Subject: [PATCH] fix: add signature for bytes (#218) --- src/StdJson.sol | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/StdJson.sol b/src/StdJson.sol index 4c16e2b9..6d2b3e24 100644 --- a/src/StdJson.sol +++ b/src/StdJson.sol @@ -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)