Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

chore: try removing the ignored_error_codes specified in foundry.toml #58

Closed
mds1 opened this issue Feb 15, 2023 · 0 comments · Fixed by #150
Closed

chore: try removing the ignored_error_codes specified in foundry.toml #58

mds1 opened this issue Feb 15, 2023 · 0 comments · Fixed by #150
Assignees

Comments

@mds1
Copy link
Collaborator

mds1 commented Feb 15, 2023

  • func-mutability is ignored because NFT's transferFrom always reverts so it can be pure. We should make it pure and remove this
  • unreachable is ignored because the ERC-721 transfer logic can't be reached since it always reverts. I'd recommend removing this for now so we find out about any additional unreachable code that's accidentally introduced
@mds1 mds1 mentioned this issue Feb 15, 2023
@AustinGreen AustinGreen self-assigned this Mar 13, 2023
AustinGreen added a commit that referenced this issue Mar 15, 2023
…rors to interfaces (#150)

**Motivation:**

Addressed a few smaller bug fixes and refactors that will improve our
code quality.

- Closes #58
- Closes #132
- Closes #134
- Closes #136

**Modifications:**

Moved all errors to their interfaces to clean up the contracts, added a
policyholder check for submitting approvals and disapprovals, fixed the
name of the test profile in `ci.yml`, and removed `ignored_error_codes`
in `foundry.toml`.

**Result:**

Code will be safer and more consistent.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants