mirror of
https://github.com/getwax/zk-account-abstraction.git
synced 2026-01-09 20:47:58 -05:00
[N02] Imprecise gas limits (#86)
clearer definition the guard condition as "all components are<=uint120.max" fixes #86
This commit is contained in:
@@ -267,7 +267,7 @@ contract EntryPoint is StakeManager {
|
||||
uint256 preGas = gasleft();
|
||||
uint256 maxGasValues = userOp.preVerificationGas | userOp.verificationGas |
|
||||
userOp.callGas | userOp.maxFeePerGas | userOp.maxPriorityFeePerGas;
|
||||
require(maxGasValues < type(uint120).max, "gas values overflow");
|
||||
require(maxGasValues <= type(uint120).max, "gas values overflow");
|
||||
uint256 gasUsedByValidateWalletPrepayment;
|
||||
uint256 requiredPreFund;
|
||||
(requiredPreFund, paymentMode) = _getPaymentInfo(userOp);
|
||||
|
||||
@@ -13,9 +13,9 @@
|
||||
·······················|······················|············|··············|·············|···············|··············
|
||||
| EntryPoint · addStake · 29068 · 46168 · 34768 · 3 · - │
|
||||
·······················|······················|············|··············|·············|···············|··············
|
||||
| EntryPoint · handleOps · 98035 · 1185485 · 425964 · 27 · - │
|
||||
| EntryPoint · handleOps · 98026 · 1185483 · 425964 · 27 · - │
|
||||
·······················|······················|············|··············|·············|···············|··············
|
||||
| EntryPoint · simulateValidation · - · - · 999703 · 1 · - │
|
||||
| EntryPoint · simulateValidation · - · - · 999738 · 1 · - │
|
||||
·······················|······················|············|··············|·············|···············|··············
|
||||
| EntryPoint · unstakeDeposit · - · - · 28381 · 1 · - │
|
||||
·······················|······················|············|··············|·············|···············|··············
|
||||
@@ -41,7 +41,7 @@
|
||||
··············································|············|··············|·············|···············|··············
|
||||
| DepositPaymaster · - · - · 1333412 · 4.4 % · - │
|
||||
··············································|············|··············|·············|···············|··············
|
||||
| TokenPaymaster · - · - · 1581358 · 5.3 % · - │
|
||||
| TokenPaymaster · - · - · 1581382 · 5.3 % · - │
|
||||
··············································|············|··············|·············|···············|··············
|
||||
| VerifyingPaymaster · - · - · 1016722 · 3.4 % · - │
|
||||
| VerifyingPaymaster · - · - · 1016710 · 3.4 % · - │
|
||||
·---------------------------------------------|------------|--------------|-------------|---------------|-------------·
|
||||
Reference in New Issue
Block a user