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

Support withdrawal for multiple entities in a single transaction #898

Open
zajck opened this issue Jan 23, 2024 · 0 comments
Open

Support withdrawal for multiple entities in a single transaction #898

zajck opened this issue Jan 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zajck
Copy link
Member

zajck commented Jan 23, 2024

A wallet can control multiple accounts at once if they are of different types (buyer, seller, dispute resolver, agent, royalty recipient).

Funds for these accounts are tracked individually, so if a user wants to withdraw them, they must call withdrawFunds for every entity they control.

To make it more user friendly, we could change withdrawFunds to accept array of entity ids (uint256[] calldata _entityId) instead of a single value and withdraw all funds in a single transaction.

@zajck zajck added the enhancement New feature or request label Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant