Skip to content
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

[Cadence 1.0] - Update contracts, transactions and tests #55

Closed
wants to merge 3 commits into from

Conversation

FelipeRibeiroLabs
Copy link
Contributor

No description provided.

@FelipeRibeiroLabs FelipeRibeiroLabs changed the title [Cadence 1.0] - Update contracts, transactions and some tests [Cadence 1.0] - Update contracts, transactions and tests Mar 12, 2024
Copy link
Contributor

@austinkline austinkline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits

@@ -325,24 +324,20 @@ pub contract FlowtyRaffles {

assert(raffle.revealers == nil || raffle.revealers![drawer.owner!.address] == true, message: "drawer is not permitted to perform reveals on this raffle")
let drawingResult = raffle.revealDrawing(id: receiptID)
let receipt = (&raffle.receipts[receiptID] as &Receipt?)!
let receiptCommitBlock = raffle.receipts[receiptID]!.commitBlock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting! So array access on a resource gives us a reference now?

Comment on lines +51 to +53
access(all) entitlement RevealRaffle

access(all) entitlement AddEntry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move these two further up in the file itself, most of the time I see these right after event definitions

We should also add some comments about each entitlement and what it's for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants