@@ -86,7 +86,7 @@ func (pc *PaymasterController) handlePaymasterMethod(c *gin.Context, req types.P
8686
8787// handleGetPaymasterStubData implements the logic for pm_getPaymasterStubData.
8888func (pc * PaymasterController ) handleGetPaymasterStubData (c * gin.Context , req types.PaymasterJSONRPCRequest , apiKey string ) {
89- params , tokenAddr , policyID , forceIsFinalEstimateOnly , rpcErr := pc .parseERC7677Params (req .Params )
89+ params , tokenAddr , policyID , forceIsFinalForEstimate , rpcErr := pc .parseERC7677Params (req .Params )
9090 if rpcErr != nil {
9191 types .SendError (c , req .ID , rpcErr .Code , rpcErr .Message )
9292 return
@@ -123,7 +123,7 @@ func (pc *PaymasterController) handleGetPaymasterStubData(c *gin.Context, req ty
123123 PaymasterVerificationGasLimit : hexutil .EncodeBig (paymasterVerificationGasLimit ),
124124 }
125125
126- if forceIsFinalEstimateOnly {
126+ if forceIsFinalForEstimate {
127127 stubResult .IsFinal = true
128128 }
129129
@@ -322,9 +322,9 @@ func (pc *PaymasterController) parseERC7677Params(rawParams json.RawMessage) (*t
322322 }
323323
324324 type ERC7677Context struct {
325- Token string `json:"token"`
326- PolicyID * int64 `json:"policy_id"`
327- ForceIsFinalEstimateOnly bool `json:"force_is_final_estimate_only "`
325+ Token string `json:"token"`
326+ PolicyID * int64 `json:"policy_id"`
327+ ForceIsFinalForEstimate bool `json:"force_is_final_for_estimate "`
328328 }
329329
330330 var context * ERC7677Context
@@ -379,7 +379,7 @@ func (pc *PaymasterController) parseERC7677Params(rawParams json.RawMessage) (*t
379379 log .Debug ("Token payment detected, policy_id not required" , "token" , tokenAddr .Hex (), "policy_id" , policyID , "sender" , userOp .Sender .Hex (), "nonce" , userOp .Nonce .String ())
380380 }
381381
382- return userOp , tokenAddr , policyID , context .ForceIsFinalEstimateOnly , nil
382+ return userOp , tokenAddr , policyID , context .ForceIsFinalForEstimate , nil
383383}
384384
385385// getTokenExchangeRate returns the exchange rate for the specified token
0 commit comments