Skip to content

Commit

Permalink
add gas for simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
jj1980a committed May 14, 2024
1 parent 6ccefa6 commit 6b8b6ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auction/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (am *Manager) simulateUserOperation(userOp *operation.UserOperation, userOp
context.Background(),
ethereum.CallMsg{
To: &am.config.Contracts.Simulator,
Gas: userOp.Gas.Uint64() + 1000000, // Add gas for validateCalls and others
Gas: userOp.Gas.Uint64() + 1500000, // Add gas for validateCalls and others
GasFeeCap: new(big.Int).Set(userOp.MaxFeePerGas),
Value: new(big.Int).Set(userOp.Value),
Data: pData,
Expand Down Expand Up @@ -285,7 +285,7 @@ func (am *Manager) simulateSolverOperation(userOp *operation.UserOperation, user
context.Background(),
ethereum.CallMsg{
To: &am.config.Contracts.Simulator,
Gas: userOp.Gas.Uint64() + solverOp.Gas.Uint64() + 1000000, // Add gas for validateCalls and others
Gas: userOp.Gas.Uint64() + solverOp.Gas.Uint64() + 1500000, // Add gas for validateCalls and others
GasFeeCap: gasPrice,
Value: new(big.Int).Set(userOp.Value),
Data: pData,
Expand Down

0 comments on commit 6b8b6ec

Please sign in to comment.