Skip to content

Conversation

@manishdait
Copy link
Contributor

Description:
This PR refactors AbstractTokenTransferTransaction to unified the common logic of creating TokenTransferList, for TransferTransaction and TokenAirdropTransaction.

Changes Made:

  • Moved shared logic for add_token_transfer and add_nft_transfer into the AbstractTokenTransaction class.
  • Refactored TransferTransaction and TokenAirdropTransaction class.

Related issue(s):

Fixes #404

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@manishdait manishdait marked this pull request as ready for review November 3, 2025 14:44
@nadineloepfe
Copy link
Contributor

yay! Thanks @manishdait, with this we get rid of quite a lot of duplicate code. Awesome work!
only thing to flag would be the inconsistent method call in _init_nft_transfers and the changelog.

Signed-off-by: Manish Dait <[email protected]>
Signed-off-by: Manish Dait <[email protected]>
Signed-off-by: Manish Dait <[email protected]>
Signed-off-by: Manish Dait <[email protected]>
@manishdait manishdait force-pushed the feat/improve-abstract-token-transfer branch from 583b55d to 10d0607 Compare November 4, 2025 13:53
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.

Refactor TransferTransaction to extend AbstractTokenTransferTransaction

2 participants