Skip to content

Commit

Permalink
Merge pull request #1 from xian-network/endo_rework
Browse files Browse the repository at this point in the history
Adjustments
  • Loading branch information
Endogen authored Jun 15, 2024
2 parents 97e3c28 + 898d203 commit 1818413
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/smart-contracts/concepts/valid-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Valid Code

## No Classes Allowed!
Contracting maintains a strict 'no classes' model. This forces you as the developer to create more procedural code that is explicit and completely self-contained. Contracts must be easy to read and understand for validity. Instead of thinking of your code in classes, think of each contract as a 'module' that exposes certain functions to it's users.
Contracting maintains a strict 'no classes' model. This forces you as the developer to create more procedural code that is explicit and completely self-contained. Contracts must be easy to read and understand for validity. Instead of thinking of your code in classes, think of each contract as a 'module' that exposes certain functions to its users.

All `class` keywords will fail your contract on submission. Even if you try to use classes for object oriented code, you will have to find another way to express your structures.

Expand Down
1 change: 0 additions & 1 deletion src/smart-contracts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Contracting simplifies the process of creating, testing, and deploying smart con
### New to Coding ?
If you're new to writing code with Python, and you want to learn the basics before going further, here are some great guides to get you started :

Official documentation
1. [Official documentation](https://docs.python.org/3.11/)
2. [Python Cheat Sheet](https://www.pythoncheatsheet.org)
3. [Sentdex YouTube videos](https://www.youtube.com/user/sentdex)

0 comments on commit 1818413

Please sign in to comment.