Skip to content

Refactoring: Move identifier checks into Context::get{Input, Reference} #18

@siburu

Description

@siburu

The following is an example of the current situation.

val client = ctx.getReference<ClientState>()
require(client.id == Identifier(msg.clientId)){"mismatch client"}

This is a boring and error-prone code.
The process of getting a state followed by checking the identifier of it should be combined into a single method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions