Skip to content

Conversation

@msbrogli
Copy link
Member

@msbrogli msbrogli commented Jul 22, 2021

@msbrogli msbrogli added the documentation Improvements or additions to documentation label Jul 22, 2021
@msbrogli msbrogli self-assigned this Jul 22, 2021
@msbrogli msbrogli force-pushed the feat/nano-contracts branch 8 times, most recently from 67823c9 to bbea8c9 Compare July 22, 2021 09:37
@msbrogli msbrogli force-pushed the feat/nano-contracts branch from bbea8c9 to 196464e Compare August 13, 2021 11:30
└─────────────────────┴──────────────────────────────────────┘
</pre>

Finally, a simple call to a method is similar to a deposit or withdrawal but with amount zero.
Copy link
Member

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."""
Copy link
Member

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.

@msbrogli msbrogli force-pushed the feat/nano-contracts branch 2 times, most recently from 8f2638f to bb8527c Compare August 13, 2021 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants