Hi, I am new to sui development. Recently I am working on migrating an erc20 contract to sui. The contract needs to have the ability to check/add/remove roles of minter/burner/blacklister. The original and simplest design is maintaining a list of addresses for each of those roles. But sui has an object orient system and I want to work with that. If we give each role a MinterCap/BurnerCap object to verify their identity, we can’t revoke that object from the contract? The contract function needs to take that cap object and drop it. Or we can design a timestamp or boolean value in the cap object. But we still need to maintain a list of objects. So there’s no need to use objects in this case? If you have any thoughts, please share with me, thanks!
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Switching from Solidity | 2 | 382 | March 25, 2025 | |
| Devnet-0.29.0 Release Notes - Major Breaking Changes | 4 | 2428 | April 8, 2023 | |
| #series-2#write smart contract on sui | 4 | 3152 | February 26, 2023 | |
| How to distinguish objects that only contain sui, but not other objects? | 2 | 1892 | April 26, 2023 | |
| PerceptronLabs SUI we come (NFT Holder Verification System) | 15 | 2479 | May 18, 2023 |