Skip to content

Correctly return Expired from Status query in ics10-grandpa-cw contract #447

@vmarkushin

Description

@vmarkushin

Use env.block.time - consensus_state.timestamp together with expired function of the client
Code:

Ok(_) => to_binary(&QueryResponse::status("Active".to_string())),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions