We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b51d84 + 9ec963b commit 009dd50Copy full SHA for 009dd50
1 file changed
creator-keys/src/lib.rs
@@ -665,11 +665,7 @@ impl CreatorKeysContract {
665
/// When no config is stored, `is_configured` is `false` and both bps fields are `0`.
666
/// Use this method for indexers and read-only callers that need a non-optional result.
667
pub fn get_protocol_fee_view(env: Env) -> ProtocolFeeView {
668
- match env
669
- .storage()
670
- .persistent()
671
- .get::<DataKey, fee::FeeConfig>(&constants::storage::FEE_CONFIG)
672
- {
+ match read_protocol_fee_config(&env) {
673
Some(config) => ProtocolFeeView {
674
creator_bps: config.creator_bps,
675
protocol_bps: config.protocol_bps,
0 commit comments