From f10851c27d5faf0f19474d303676128edbd8696c Mon Sep 17 00:00:00 2001 From: sendra Date: Tue, 30 Jul 2024 16:39:31 +0200 Subject: [PATCH] fix: fixed serialize json key cleanup --- tests/utils/ProtocolV3TestBase.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/utils/ProtocolV3TestBase.sol b/tests/utils/ProtocolV3TestBase.sol index c17a0c75..1572ad7e 100644 --- a/tests/utils/ProtocolV3TestBase.sol +++ b/tests/utils/ProtocolV3TestBase.sol @@ -191,7 +191,7 @@ contract ProtocolV3TestBase is DiffUtils { ReserveConfig[] memory configs ) internal virtual { // keys for json stringification - string memory strategiesKey = 'stategies'; + string memory strategiesKey = 'strategies'; string memory content = '{}'; vm.serializeJson(strategiesKey, '{}'); @@ -243,6 +243,7 @@ contract ProtocolV3TestBase is DiffUtils { // keys for json stringification string memory reservesKey = 'reserves'; string memory content = '{}'; + vm.serializeJson(reservesKey, '{}'); IPoolAddressesProvider addressesProvider = IPoolAddressesProvider(pool.ADDRESSES_PROVIDER()); IAaveOracle oracle = IAaveOracle(addressesProvider.getPriceOracle()); @@ -253,6 +254,7 @@ contract ProtocolV3TestBase is DiffUtils { ); string memory key = vm.toString(config.underlying); + vm.serializeJson(key, '{}'); vm.serializeString(key, 'symbol', config.symbol); vm.serializeUint(key, 'ltv', config.ltv); vm.serializeUint(key, 'liquidationThreshold', config.liquidationThreshold);