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

refactor: marketplace custom errors handling #1061

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

AuHau
Copy link
Member

@AuHau AuHau commented Jan 8, 2025

@AuHau AuHau requested review from markspanbroek and emizzle January 8, 2025 10:19
Copy link
Member

@markspanbroek markspanbroek left a comment

Choose a reason for hiding this comment

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

Looks good @AuHau, thanks!

tests/contracts/testContracts.nim Outdated Show resolved Hide resolved
Copy link
Contributor

@emizzle emizzle left a comment

Choose a reason for hiding this comment

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

Nice work, thanks for doing this Adam. One suggestion would be to a test or two for some coverage...

.markProofAsMissing(slotId, missingPeriod)
.confirm(1)
.reverts("Slot not accepting proofs")
try:
Copy link
Contributor

Choose a reason for hiding this comment

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

This test doesn't really cover the changes introduced, although I don't know how much we really want to cover all of them. We could add a test that calls requestState with a non-existent requestId, which should return none RequestState.

@AuHau AuHau force-pushed the refactor/marketplace-custom-errors branch from f66e88e to 4bc661b Compare January 15, 2025 13:18
@AuHau AuHau enabled auto-merge January 16, 2025 07:53
@AuHau AuHau added this pull request to the merge queue Jan 16, 2025
Merged via the queue into master with commit 68ad804 Jan 16, 2025
17 checks passed
@AuHau AuHau deleted the refactor/marketplace-custom-errors branch January 16, 2025 11:00
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