Cyfrin / solidity-by-example.github.io

Solidity By Example
https://solidity-by-example.org/
MIT License
605 stars 191 forks source link

Primitive data types uint256 and int256 are not defined correctly in example #3 #180

Closed neodaoist closed 2 years ago

t4sk commented 2 years ago

@tomMobileDev123

uint is alias for uint256 same for int

I will merge the PR if you can add a comment mentioning that.

// uint is alias for uint256
uint256 public u256 = 123
.... similar comment for int
neodaoist commented 2 years ago

Hey @t4sk I believe that exact comment is already present on the next line in both cases. I was just hoping to illustrate the point clearer so that variable u is of type uint and variable u256 is of type uint256.

t4sk commented 2 years ago

@tomMobileDev123 Yeah you're right. Thanks

neodaoist commented 2 years ago

Sounds good, and awesome job on this project generally. Excellent resource for learning about smart contracts and dApps!