Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat paymaster call for buildUserOp #305

Merged
merged 26 commits into from
Oct 9, 2023

Conversation

AmanRaj1608
Copy link
Contributor

@AmanRaj1608 AmanRaj1608 commented Sep 27, 2023

Now the buildUSerOp will call the paymaster by default and if the skipEstimation is off it will call bundler as usual.

The code to buildUSerOp with paymasterEstimationData

  const userOp = await biconomySmartAccount.buildUserOp([transaction], {
    // skipBundlerGasEstimation: true,
    paymasterServiceData: {
      mode: PaymasterMode.SPONSORED
    },
  });
  console.log(`userOp: ${JSON.stringify(userOp, null, "\t")}`);

Copy link
Contributor

@livingrockrises livingrockrises left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left comments

packages/account/src/BiconomySmartAccount.ts Outdated Show resolved Hide resolved
packages/account/src/BiconomySmartAccountV2.ts Outdated Show resolved Hide resolved
packages/paymaster/src/BiconomyPaymaster.ts Outdated Show resolved Hide resolved
@tomarsachin2271 tomarsachin2271 merged commit 0eb2fe8 into development Oct 9, 2023
2 checks passed
@AmanRaj1608 AmanRaj1608 deleted the feat-paymaster-changes branch February 12, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants