Skip to content

Implement with_state_drain & with_state_at_drain #41

@mustermeiszer

Description

@mustermeiszer

The method should allow using any state and return the respective storage changes of the closure afterwards.

API

fn with_state_drain(exec: F) -> Result<(R, StorageChanges), Error> 
    where F: FnOnce() -> R {}

fn with_state_at_drain(at: BlockId, exec: F) -> Result<(R, StorageChanges), Error> 
    where F: FnOnce() -> R {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    I8-enhancementAn additional feature.P0-someday-maybeIssue might be worth doing someday.Q3-mediumCan be done with good experience in the language, but little knowledge of the codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions