We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
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.
non-payable
Balance
BTW, the ability of payable is super class of non-payble in actually.
payable
non-payble
Sorry, something went wrong.
I see, I raised the PR #250, but there were some considerations and this line is intentional to stop users from using payable: false?
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.
No branches or pull requests
In Ask! message is payable even if there's no modifiers.
For example,
This will generate metadata.json payable true, and it is actually payable.
Is there a way to specify message to be non-payable?
The text was updated successfully, but these errors were encountered: