However as it can be seen, the _to address parameter is not an array. Although the first draft of ERC1155 actually suggested just that.
An application might have compiled a list of addresses off-chain corresponding to attendees of an event and wants to mint tokens for all of them.
In fact, POAP has such function:
function mintEventToManyUsers(uint256 eventId, address[] memory to)
I wonder if it would make sense to allow minting and burning for multiple addresses at the same time.
ERC1155 enables batch transfers:
However as it can be seen, the
_to
address parameter is not an array. Although the first draft of ERC1155 actually suggested just that.An application might have compiled a list of addresses off-chain corresponding to attendees of an event and wants to mint tokens for all of them. In fact, POAP has such function:
https://github.com/poap-xyz/poap-contracts/blob/5f9a31ed3b95e63d8de5a2b5057aeed0f6ed6750/contracts/Poap.sol#L130
So for ERC1238, it would mean allowing minting with multiple addresses (same for burning):
Or