carbonable-labs / carbon-protocol-v3

Apache License 2.0
12 stars 24 forks source link

Use OpenZeppelin ERC1155 #51

Closed julienbrs closed 2 weeks ago

julienbrs commented 3 months ago

Description

We copy pasted the code of erc1155 of Openzeppelin and didn't import it. Two reasons for this: First, the import wouldn't work with some Starknet foundry tests.

More importantly: 1155's OZ interface isn't using transfer_from and mint anymore, but only safe_transfer_from and safe_mint. However, the use of these safe methods can't lead to issues:

For the moment we forked the OZ's code and removed the safe logic to these functions (calldata isn't used anymore). We should allow both safe and non-safe methods in the future.


Acceptance criteria

princeibs commented 3 months ago

I would like to work on this @julienbrs

julienbrs commented 2 weeks ago

Closing it @tekkac