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): Use custom errors instead of string messages #141

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

0x-r4bbit
Copy link
Collaborator

This reduces the gas cost as custom errors always use 4 bytes.

This supersedes #73 as we need PRs to be sent from upstream repository in order to have the verification task work on CI.

Copy link
Collaborator

@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.

LGTM

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.

👍

contracts/Marketplace.sol Outdated Show resolved Hide resolved
@AuHau
Copy link
Member

AuHau commented Aug 6, 2024

Btw. please don't merge it until we have nim-codex PR that will be implementing this. I assume you don't wanna dive in Nim, so I will have a look on it in the following days.

@0x-r4bbit
Copy link
Collaborator Author

Addressed all comments made here and updated the PR.

0x-r4bbit and others added 2 commits January 2, 2025 10:15
This reduces the gas cost as custom errors always use 4 bytes.
@AuHau AuHau added the Marketplace See https://miro.com/app/board/uXjVNZ03E-c=/ for details label Jan 9, 2025
@AuHau AuHau merged commit 02e3b8d into master Jan 15, 2025
4 checks passed
@AuHau AuHau deleted the custom-errors branch January 15, 2025 13:11
@0x-r4bbit
Copy link
Collaborator Author

At last!

@AuHau
Copy link
Member

AuHau commented Jan 16, 2025

At last!

Haha yeah 😅 After half year... 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Marketplace See https://miro.com/app/board/uXjVNZ03E-c=/ for details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants