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

feat: create configurable pvg markup #136

Merged
merged 4 commits into from
Dec 12, 2023
Merged

feat: create configurable pvg markup #136

merged 4 commits into from
Dec 12, 2023

Conversation

0xSulpiride
Copy link
Member

Description

  • feat: configurable pvg markup

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Further comments (optional)

@@ -459,7 +459,7 @@ export class Eth {
ov.perUserOp +
ov.perUserOpWord * lengthInWord
);
return ret;
return ret + this.config.pvgMarkup;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we add validation here to ensure the values are positive?

Copy link
Member Author

Choose a reason for hiding this comment

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

ret is always positive and pvgMarkup is negative only when deliberately set to a negative value by a relayer, so I think validation is excessive

Copy link
Member

Choose a reason for hiding this comment

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

I understand that this is possible only if set deliberately. I just want to ensure this doesn't cause an issue.

@@ -459,7 +459,7 @@ export class Eth {
ov.perUserOp +
ov.perUserOpWord * lengthInWord
);
return ret;
return ret + this.config.pvgMarkup;
Copy link
Member

Choose a reason for hiding this comment

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

I understand that this is possible only if set deliberately. I just want to ensure this doesn't cause an issue.

@0xSulpiride 0xSulpiride merged commit 692d978 into master Dec 12, 2023
3 of 4 checks passed
@0xSulpiride 0xSulpiride deleted the configurable-pvg branch December 12, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants