samples
samples copied to clipboard
Timesheet-example has multiple mistakes
InvoiceContract
:
-
Important: I believe that the oracle signature should be enforced by the contract (only participants are, see here), otherwise there is no real enforcement that the rate should be provided by an oracle, a contractor can write a different version of the
IssueInvoiceFlow
where they provide any rate that they like.
In addition to that, what's the point of supplying the oracle as an attribute in the state (see here), and what's the point of using an oracle in this example if the contract is not taking advantage of that? -
Typo here (probably copied from IOU example).
IssueInvoiceFlow
: