Skip to content

Commit aed677c

Browse files
fix: rename sanitize to normalize since it was no user input (#191)
Signed-off-by: Mariusz Jasuwienas <mariusz.jasuwienas@arianelabs.com>
1 parent 7b915e4 commit aed677c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/HtsSystemContractJson.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ contract HtsSystemContractJson is HtsSystemContract {
218218
tokenInfo.token = _getHederaToken(json);
219219
tokenInfo.fixedFees = _getFixedFees(json);
220220
tokenInfo.fractionalFees = _getFractionalFees(json);
221-
tokenInfo.royaltyFees = _getRoyaltyFees(_sanitizeFeesStructure(json));
221+
tokenInfo.royaltyFees = _getRoyaltyFees(_normalizeFallbackFee(json));
222222
tokenInfo.ledgerId = _getLedgerId();
223223
tokenInfo.defaultKycStatus = false; // not available in the fetched JSON from mirror node
224224
tokenInfo.totalSupply = int64(vm.parseInt(vm.parseJsonString(json, ".total_supply")));
@@ -229,7 +229,7 @@ contract HtsSystemContractJson is HtsSystemContract {
229229

230230
// In order to properly decode the bytes returned by the parseJson into the Solidity Structure, the full,
231231
// correct structure has to be provided in the input json, with all of the corresponding fields.
232-
function _sanitizeFeesStructure(string memory json) private pure returns (string memory) {
232+
function _normalizeFallbackFee(string memory json) private pure returns (string memory) {
233233
return vm.replace(
234234
json,
235235
"\"fallback_fee\":null}",

0 commit comments

Comments
 (0)