Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 3e70b53

Browse files
authored
Fix typo in eth_estimateUserOperationGas (#206)
1 parent 6f7d1ed commit 3e70b53

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

pkg/client/client.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,12 @@ func (i *Client) EstimateUserOperationGas(op map[string]any, ep string) (*gas.Ga
181181

182182
l.Info("eth_estimateUserOperationGas ok")
183183
return &gas.GasEstimates{
184-
PreVerificationGas: pvg,
185-
VerificationGas: big.NewInt(int64(vg)),
186-
CallGasLimit: big.NewInt(int64(cg)),
184+
PreVerificationGas: pvg,
185+
VerificationGasLimit: big.NewInt(int64(vg)),
186+
CallGasLimit: big.NewInt(int64(cg)),
187+
188+
// TODO: Deprecate in v0.7
189+
VerificationGas: big.NewInt(int64(vg)),
187190
}, nil
188191
}
189192

pkg/gas/types.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import "math/big"
44

55
// GasEstimates provides estimate values for all gas fields in a UserOperation.
66
type GasEstimates struct {
7-
PreVerificationGas *big.Int `json:"preVerificationGas"`
8-
VerificationGas *big.Int `json:"verificationGas"`
9-
CallGasLimit *big.Int `json:"callGasLimit"`
7+
PreVerificationGas *big.Int `json:"preVerificationGas"`
8+
VerificationGasLimit *big.Int `json:"verificationGasLimit"`
9+
CallGasLimit *big.Int `json:"callGasLimit"`
10+
11+
// TODO: Deprecate in v0.7
12+
VerificationGas *big.Int `json:"verificationGas"`
1013
}

0 commit comments

Comments
 (0)