-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I was thinking whether it could be possible to update IPCM to not require deployment of a contract for each new owner, and rather have a mapping of owners to CID mappings instead.
Something like this (excl. security / ownership checks):
error NullAddress();
contract Name {
mapping (address => string) mappings;
constructor() {}
func updateMapping(string memory value) public {
if (msg.sender == address(0)) revert NullAddress();
mappings[msg.sender] = value;
emit MappingUpdated(value);
}
func getMapping() public view returns (string memory) {
return mappings[msg.sender];
}
}wdyt?
Metadata
Metadata
Assignees
Labels
No labels