TezosTaqueria / taqueria

*BETA* Taqueria provides a seamless development workflow to easily build, test and deploy your Tezos applications.
https://taqueria.io
Apache License 2.0
64 stars 20 forks source link

🚧 Dev ➾ Adjust LIGO default parameter/storage list files to use explicit types #1910

Closed mweichert closed 11 months ago

mweichert commented 11 months ago

πŸ”— Epic|Feature Link

No response

πŸš₯ Definition of Done

🧰 Work Description

LIGO will not work in many cases when a variable in the storage or parmeter list files are not explicitly typed.

As such, we need to update our examples to have explicit types, and too adjust some of the messaging. For instance, the default content for the storage/parameter list includes the following comments:

// If your storage is a simple value, you can define it directly
// E.g. let storage = 10
//
// For added type-safety, you can reference the type of your storage from the contract
// E.g. let storage : Contract.storage = 10

We should instead adjust this to be:

// IMPORTANT: We suggest always explicitly typing your storage values:
// E.g.: `let storage: int = 10` or `let storage: Contract.storage = 10`

βœ… To Do

βš–οΈ Acceptance Criteria

✨ Functional:

πŸ”­ Scope

No response

Code of Conduct