-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
High level of Nano Contracts #31
base: master
Are you sure you want to change the base?
Conversation
67823c9
to
bbea8c9
Compare
bbea8c9
to
196464e
Compare
└─────────────────────┴──────────────────────────────────────┘ | ||
</pre> | ||
|
||
Finally, a simple call to a method is similar to a deposit or withdrawal but with amount zero. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we have methods that can be only used in the tx inputs and others in the outputs? Should it be explicit in the blueprint?
collect_prize
is a method just like make_a_bet
or any other method that can be called with amount 0. How can we know where they are allowed? Does it make sense to have a method with amount 0 called in the inputs?
|
||
@public | ||
def set_result(self, result: str) -> None: | ||
"""Set result. Used by the oracle.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only the oracle can call this? Would be interesting if anyone can call it, as long as the message is properly signed by the oracle.
8f2638f
to
bb8527c
Compare
bb8527c
to
2d89a4a
Compare
Rendered