Skip to content

IND-533 Support paymaster in gas estimations#11

Merged
DrenIncentiv merged 1 commit intomainfrom
IND-533-Support-paymaster-in-gas-estimations
Apr 11, 2025
Merged

IND-533 Support paymaster in gas estimations#11
DrenIncentiv merged 1 commit intomainfrom
IND-533-Support-paymaster-in-gas-estimations

Conversation

@DrenIncentiv
Copy link
Contributor

@DrenIncentiv DrenIncentiv commented Apr 11, 2025

Description:

This PR implements IND-533, adding support for Paymaster integration in gas estimations within the UI-SDK. This ensures that estimated gas values more accurately reflect the actual cost when using a paymaster during UserOperation submission.


Changes Implemented:

  • Updated the gas estimation flow to include a call to getPaymasterAndData if a Paymaster API instance is set.
  • Adjusted the estimateUserOperationGas logic to take paymaster data into account during simulation.
  • Ensured compatibility with existing setups where no paymaster is used (fallback to default behavior).

Testing:

  • Verified gas estimation results with and without a paymaster present.
  • Confirmed consistent integration with both native and token-based actions.
  • Checked edge cases including empty paymaster responses and invalid data formats.

Linked Issue:

IND-533

@DrenIncentiv DrenIncentiv merged commit 44add5f into main Apr 11, 2025
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.

1 participant