StarkWare’s official repo provides a demo for ERC20 code, which we will use to learn how to write Cairo 1.0 contracts in this article.
Contract Definition
First, at the beginning of the contract, #[contract] is used to indicate that the following content is a smart contract, followed by