We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The DIDRegistry contract exposes the isDIDOwner function which should be favored over a manual retrieval of the DID owner and equality validation.
DIDRegistry
isDIDOwner
modifier onlyDIDOwnerOrProvider( bytes32 _documentId ) { DIDRegistry didRegistry = DIDRegistry( agreementStoreManager.getDIDRegistryAddress() ); require( didRegistry.isDIDProvider(_documentId, msg.sender) || msg.sender == didRegistry.getDIDOwner(_documentId), 'Invalid DID owner/provider' ); _; }
We advise the linked conditionals to be replaced by the specified invocation.
The text was updated successfully, but these errors were encountered:
68a6299
aaitor
No branches or pull requests
ACN-01C: Usage of Proper APIs
Description:
The
DIDRegistry
contract exposes theisDIDOwner
function which should be favored over a manual retrieval of the DID owner and equality validation.Example:
Recommendation:
We advise the linked conditionals to be replaced by the specified invocation.
The text was updated successfully, but these errors were encountered: