Skip to content

Commit

Permalink
rename enum entries of SponsoringMode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwahid committed May 11, 2023
1 parent 2774d5c commit e87cac7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/paymaster/CandidePaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ contract CandidePaymaster is BasePaymaster {
using SafeERC20 for IERC20Metadata;

enum SponsoringMode {
FULL,
GAS,
GAS_AND_FEE,
GAS_ONLY,
FREE
}

Expand Down Expand Up @@ -150,7 +150,7 @@ contract CandidePaymaster is BasePaymaster {
}
//
uint256 actualTokenCost = ((actualGasCost + (COST_OF_POST * gasPricePostOp)) * exchangeRate) / 1e18;
if (sponsoringMode == SponsoringMode.FULL){
if (sponsoringMode == SponsoringMode.GAS_AND_FEE){
actualTokenCost = actualTokenCost + fee;
}
if (mode != PostOpMode.postOpReverted) {
Expand Down

0 comments on commit e87cac7

Please sign in to comment.