Skip to content

Commit cf85b12

Browse files
Use fallback wording
1 parent f8242d1 commit cf85b12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/token/extensions/ConfidentialFungibleTokenERC20Wrapper.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ abstract contract ConfidentialFungibleTokenERC20Wrapper is ConfidentialFungibleT
160160
* Used as a default fallback when {_tryGetAssetDecimals} fails to fetch decimals of the underlying
161161
* ERC-20 token.
162162
*/
163-
function _defaultUnderlyingDecimals() internal pure virtual returns (uint8) {
163+
function _fallbackUnderlyingDecimals() internal pure virtual returns (uint8) {
164164
return 18;
165165
}
166166

@@ -178,6 +178,6 @@ abstract contract ConfidentialFungibleTokenERC20Wrapper is ConfidentialFungibleT
178178
if (success && encodedDecimals.length == 32) {
179179
return abi.decode(encodedDecimals, (uint8));
180180
}
181-
return _defaultUnderlyingDecimals();
181+
return _fallbackUnderlyingDecimals();
182182
}
183183
}

0 commit comments

Comments
 (0)