ERC4973 icon indicating copy to clipboard operation
ERC4973 copied to clipboard

An additional `bytes calldata data` to give and take could help extending the interface's functionality

Open TimDaub opened this issue 3 years ago • 0 comments

  • To enable one user to give and take to many users, Otterspace has implemented giveToMany and takeToMany respectively
    • https://github.com/otterspace-xyz/otterspace-contracts/blob/511ce5564eeb3a7d0833635262c3bc8a5f54b4bc/src/Badges.sol#L134
    • https://github.com/otterspace-xyz/otterspace-contracts/blob/511ce5564eeb3a7d0833635262c3bc8a5f54b4bc/src/Badges.sol#L197
  • This is a use case they're serving so we're interested in serving it with ERC4973 too.
  • One idea was to add an additional bytes calldata data to both give and take such that they could pack the "many" information into this bytearray

TimDaub avatar Jan 12 '23 10:01 TimDaub