Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEP141 connector: remove proof consumer #240

Merged
merged 1 commit into from
May 16, 2024
Merged

Conversation

karim-en
Copy link
Collaborator

@karim-en karim-en commented May 14, 2024

  • Get rid of deploying the ProofConsumer as a separate contract by including it in the factory contract.
  • Update some dependencies and scripts.

@karim-en karim-en marked this pull request as ready for review May 14, 2024 23:41
@karim-en karim-en requested review from kiseln and olga24912 May 14, 2024 23:41
Copy link
Contributor

@kiseln kiseln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy with combining the contracts into one. I see no big reason for the proof consumer to be separate.

One more change that I considered doing for this contract is changing string errors to custom errors according to the modern solidity. I can work on it if it's something we want

@@ -30,8 +29,8 @@
"eslint-plugin-standard": "^4.0.0",
"eth-gas-reporter": "^0.2.17",
"ethereum-waffle": "^3.4.4",
"ethers": "^5.6.6",
"hardhat": "^2.10.1",
"ethers": "^6.12.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to updates the tests as well according to the new ethers version. It's a lot of code but should be straightforward

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, let's fix it in the follow-up PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would rather do it here but up to you

@kiseln kiseln self-requested a review May 16, 2024 08:48
@karim-en karim-en merged commit 0b989fa into master May 16, 2024
16 of 19 checks passed
@karim-en karim-en deleted the refactor-proof-consumer branch May 16, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants