We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fba9c07 commit e6b51c2Copy full SHA for e6b51c2
examples/developer-hub-solidity/FAssetsAssetManagerRegistry.sol
@@ -33,11 +33,11 @@ contract AssetManagerRegistry {
33
AssetManagerSettings.Data memory settings = assetManager
34
.getSettings();
35
36
+ // Calculate the hash of the pool token suffix
37
+ bytes32 poolTokenSuffixHash = keccak256(abi.encodePacked(poolTokenSuffix));
38
+
39
//8. return the address of the asset manager that has the pool token suffix "TXRP"
- if (
- keccak256(abi.encodePacked(settings.poolTokenSuffix)) ==
- TXRP_HASH
40
- ) {
+ if (poolTokenSuffixHash == TXRP_HASH) {
41
return address(assetManager);
42
}
43
0 commit comments