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

Add overhead for postOp gas #28

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Add overhead for postOp gas #28

merged 1 commit into from
Feb 23, 2024

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Feb 23, 2024

No description provided.

@@ -19,6 +19,9 @@ import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
contract LimitingPaymaster is BasePaymaster {
using UserOperationLib for UserOperation;

uint256 public constant newSenderPostOpOverhead = 23231;

Choose a reason for hiding this comment

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

Can you point me to the characterization output that determined these gas ops?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we ran a previous version onchain and logged the diffs, updating these constants until they matched the overhead exactly

@mdehoog mdehoog merged commit 3f510df into main Feb 23, 2024
5 checks passed
@mdehoog mdehoog deleted the limiting-paymaster-overhead branch February 23, 2024 22:04
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.

2 participants