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

Fix examples #793

Merged
merged 2 commits into from
Nov 1, 2024
Merged

Fix examples #793

merged 2 commits into from
Nov 1, 2024

Conversation

nvdtf
Copy link
Member

@nvdtf nvdtf commented Oct 26, 2024

Closes: #782

Description

  • Updated examples to Cadence 1.0
  • Fixed bugs in some examples
  • Verified all of them run

}`)).
SetScript([]byte(`
transaction {
prepare(signer: auth(Storage) &Account) {}
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure how to specify auth(None)

Copy link
Member

Choose a reason for hiding this comment

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

Simply remove the authorization

Suggested change
prepare(signer: auth(Storage) &Account) {}
prepare(signer: &Account) {}

Copy link
Member Author

Choose a reason for hiding this comment

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

oh yeah! thanks

@nvdtf nvdtf changed the title fix examples Fix examples Oct 26, 2024
@nvdtf nvdtf merged commit e84608b into master Nov 1, 2024
1 check passed
@nvdtf nvdtf deleted the navid/update-examples-to-cadence-1 branch November 1, 2024 20:05
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.

Examples need to be updated to Cadence 1.0
5 participants