Posted on c/ElrondDevelopers 1 adi8055493100c/ElrondDevelopers 3 years ago is this bit iterating through all roles that exist for EsdtLocalRole? why does it need the cloned() on the end? Comment 1 Comments ian8639380436 3years ago Because into_iter returns references to the elements, while set_special_roles expects owned objects. And no, it only iterates over the roles provided in the slice, in this case, the NftCreate role.
Because into_iter returns references to the elements, while set_special_roles expects owned objects. And no, it only iterates over the roles provided in the slice, in this case, the NftCreate role.