ask
                                
                                
                                
                                    ask copied to clipboard
                            
                            
                            
                        Non payable message in Ask! ?
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?
Some things need to be considered first when support non-payable.
The logic of checking non-payable need to make sure Balance type first in decorator.
So we need to make sure the abstract level of Balance type.
BTW, the ability of payable is super class of non-payble in actually.
I see,
I raised the PR https://github.com/ask-lang/ask/pull/250, but there were some considerations and this line is intentional to
stop users from using payable: false?
I missed TODO comment in the source code for some reason, I recognize it intentional and non-payable hasn't not supported yet.