Skip to content

Commit

Permalink
fff
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipp Makarov authored and Filipp Makarov committed Oct 22, 2024
1 parent 54d1b08 commit 98a646e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions contracts/sponsorship/BiconomySponsorshipPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ contract BiconomySponsorshipPaymaster is
) * 10 * userOp.unpackMaxFeePerGas()
) / 100;

console2.log("call gas limit in pm ", uint128(uint256(userOp.accountGasLimits)));

Check failure on line 426 in contracts/sponsorship/BiconomySponsorshipPaymaster.sol

View workflow job for this annotation

GitHub Actions / Lint sources

Unexpected console statement
console2.log("pm gas limit in pm", uint128(bytes16(userOp.paymasterAndData[_PAYMASTER_POSTOP_GAS_OFFSET:_PAYMASTER_DATA_OFFSET])));

Check failure on line 427 in contracts/sponsorship/BiconomySponsorshipPaymaster.sol

View workflow job for this annotation

GitHub Actions / Lint sources

Unexpected console statement

console2.log("max penalty ", maxPenalty);

Check failure on line 429 in contracts/sponsorship/BiconomySponsorshipPaymaster.sol

View workflow job for this annotation

GitHub Actions / Lint sources

Unexpected console statement

// Deduct the max gas cost.
Expand Down
4 changes: 1 addition & 3 deletions test/unit/concrete/TestSponsorshipPaymaster.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ contract TestSponsorshipPaymasterWithPriceMarkup is TestBase {
PackedUserOperation[] memory ops = new PackedUserOperation[](1);
(PackedUserOperation memory userOp, bytes32 userOpHash) = createUserOp(ALICE, bicoPaymaster, 1e6, 55_000);
ops[0] = userOp;
console2.log("================");
startPrank(BUNDLER.addr);
ENTRYPOINT.handleOps(ops, payable(BUNDLER.addr));
stopPrank();
Expand All @@ -269,9 +270,6 @@ contract TestSponsorshipPaymasterWithPriceMarkup is TestBase {
console2.log("max gas fee ", uint128(uint256(userOp.gasFees)));
console2.log("max gas ", this.getGasLimit(userOp));

//max penalty in PM: 16500000000
//actual penalty wei: 899898000000

vm.warp(block.timestamp + WITHDRAWAL_DELAY + 1);
bicoPaymaster.executeWithdrawalRequest(DAPP_ACCOUNT.addr);
uint256 bobBalanceAfterWithdrawal = BOB_ADDRESS.balance;
Expand Down

0 comments on commit 98a646e

Please sign in to comment.