Skip to content

refactor(api): reuse module instances instead of re-instantiating in Payout methods#7

Merged
Benzilla merged 2 commits intozonelessdev:mainfrom
jeesidhu:refactor/reuse-module-instance-in-payout
Apr 11, 2026
Merged

refactor(api): reuse module instances instead of re-instantiating in Payout methods#7
Benzilla merged 2 commits intozonelessdev:mainfrom
jeesidhu:refactor/reuse-module-instance-in-payout

Conversation

@jeesidhu
Copy link
Copy Markdown
Contributor

@jeesidhu jeesidhu commented Apr 9, 2026

Description

Reuse existing module instances (ExternalWalletModule, BalanceModule, BalanceTransactionModule) from the constructor instead of creating new instances in CreatePayout, BuildPayoutsBatch, and RefundPayoutBalance methods.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation

How Was This Tested?

  • Unit tests
  • Integration tests
  • Manual testing

All 13 test suites (131 tests) pass.

Screenshots (if applicable)

Checklist

  • Self-reviewed my code
  • No new warnings
  • Existing tests still pass
  • Breaking changes are documented above

@Benzilla
Copy link
Copy Markdown
Contributor

Looks great! CI is failing on the format check. Could you run npm run format and push the fix? Thanks!

@Benzilla Benzilla merged commit e0d5d54 into zonelessdev:main Apr 11, 2026
5 checks passed
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.

2 participants