Jacob Tucker Profile picture
🧙‍♂️Wizard of @emerald_dao
Mar 29, 2023 9 tweets 5 min read
A huge update is coming to #Cadence, the smart contract language used by @flow_blockchain:

📥Attachments

What are they and how do we code them?
👇🧵 Image @flow_blockchain 📽️Before I begin, I made a YouTube video diving into attachments here:
Mar 28, 2023 7 tweets 3 min read
In #Cadence, there are 4 phases to a transaction:

1. "Prepare"
2. "Pre"
3. "Execute"
4. "Post"

What are the differences between them?

👇🧵 Image 1. The prepare phase

This is the first part of the transaction to get run.

⚠️It is also the only place you have access to the signer's `AuthAccount`, a type that allows you to have full access to an account.