mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2026-01-06 10:45:25 -05:00
1.3 KiB
1.3 KiB
🍣 tests in solidity
assert vs. require
- Assert() should only be used to test for internal errors, and to check invariants.
- Require() should be used to ensure valid conditions are met that cannot be detected until execution time.
- You may optionally provide a message for require, but not for assert.