Skip to content

Commit

Permalink
Merge pull request #39 from bgd-labs/fix/diff-json-generation-key-cle…
Browse files Browse the repository at this point in the history
…anup

fix: fixed serialize json key cleanup
  • Loading branch information
sendra authored Jul 30, 2024
2 parents 09aa002 + f10851c commit 84e158c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/utils/ProtocolV3TestBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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, '{}');

Expand Down Expand Up @@ -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());
Expand All @@ -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);
Expand Down

0 comments on commit 84e158c

Please sign in to comment.