Skip to content

Runtime returns incorrect values for constants: DefaultGlobalWeeklyNftLimit, DefaultChannelDailyNftLimit & DefaultChannelWeeklyNftLimit #4726

@zeeshanakram3

Description

@zeeshanakram3

When querying these constants by Polkadot js API, each returns 100, which is the value of DefaultGlobalDailyNftLimit. Turns out that there is a bug in correctly exposing these three constants.

see

const DefaultGlobalWeeklyNftLimit: LimitPerPeriod<T::BlockNumber> =
T::DefaultGlobalDailyNftLimit::get();
/// Exports const - default channel daily NFT limit.
const DefaultChannelDailyNftLimit: LimitPerPeriod<T::BlockNumber> =
T::DefaultGlobalDailyNftLimit::get();
/// Exports const - default channel weekly NFT limit.
const DefaultChannelWeeklyNftLimit: LimitPerPeriod<T::BlockNumber> =
T::DefaultGlobalDailyNftLimit::get();

┆Issue is synchronized with this Asana task by Unito

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingruntime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions