Skip to content

Transfer different coins in one function call #25

Answered by 0xaptosj
0xaptosj asked this question in Questions
Discussion options

You must be logged in to vote

This is not currently possible because:

to transfer Coin, you must pass CoinType: coin::transfer<CoinType>(sender, receiver, amount);
however, passing an unknown amount of CoinType as type arguments is impossible. The best you can do is multisend<CoinType1, CoinType2, ..., CoinTypeN> but N is a bounded number.

Replies: 1 comment

Comment options

0xaptosj
Mar 7, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by 0xaptosj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
move Questions related to the Move Language
1 participant