Cyfrin / solidity-by-example.github.io

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

[array] Incorrect = instead of == in assert statements #197

Closed HyperHoomann closed 2 years ago

HyperHoomann commented 2 years ago

Incorrect Assignment instead of equality check in asset statements Throws TypeError during compilation.

https://github.com/solidity-by-example/solidity-by-example.github.io/blob/ece680e7225c7468b85cd7a2843f074052e2fa4d/src/pages/array/ArrayReplaceFromEnd.sol#L23-L31