Skip to content

Non payable message in Ask! ? #249

Description

@shunsukew

In Ask! message is payable even if there's no modifiers.
For example,

@message({ mutates: true })
  flip(): void {
    this.data.flag = !this.data.flag;
    let event = new FlipEvent(this.data.flag);
    // @ts-ignore
    env().emitEvent(event);
  }

This will generate metadata.json payable true, and it is actually payable.

"messages": [
        {
          "mutates": true,
          "payable": true,
          "args": [],
          "docs": [],
          "label": "flip",
          "selector": "0x633aa551"
        }
]

Is there a way to specify message to be non-payable?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions