Skip to content

Commit

Permalink
test: refactoring paymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Aug 20, 2024
1 parent 2111a94 commit 82002ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions packages/integration-tests/src/playbook/deploy/use-paymaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,13 @@ export default async function (hre: HardhatRuntimeEnvironment) {

const erc20 = getToken(hre, emptyWallet);

// const gasPrice = await provider.getGasPrice();

const paymasterParams = utils.getPaymasterParams(PAYMASTER_ADDRESS, {
type: "ApprovalBased",
token: TOKEN_ADDRESS,
minimalAllowance: 1,
innerInput: new Uint8Array(),
});

// const gasLimit = await erc20.mint(emptyWallet.address, 100, {
// customData: {
// gasPerPubdata: utils.DEFAULT_GAS_PER_PUBDATA_LIMIT,
// paymasterParams: paymasterParams,
// },
// });

// gasPrice.mul(gasLimit.toString()); //<-- TODO: Unknown mul

const mintTx = await erc20.mint(emptyWallet.address, 90, {
customData: {
paymasterParams: paymasterParams,
Expand Down
2 changes: 1 addition & 1 deletion reth_chaindata/reth_config
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@
"baseFeePerGas": 1,
"excessBlobGas": "0x0",
"blobGasUsed": 0
}
}

0 comments on commit 82002ee

Please sign in to comment.