-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
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
feat: map permission and permissions docs section #436
feat: map permission and permissions docs section #436
Conversation
db23a9d
to
c447bba
Compare
```js | ||
import { isDataAuthentic } from '@erc725/erc725.js'; | ||
|
||
isDataAuthentic(data, verificationOptions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this will not always work for the decoded json data unfortunately. If the checksum was pretty printed then the data needs to be the byte array of the file.
c447bba
to
18b8a93
Compare
18b8a93
to
5e300f0
Compare
5e300f0
to
8b2bb98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the docs are already live for this feature:
https://docs.lukso.tech/tools/erc725js/methods#mappermission
What kind of change does this PR introduce (bug fix, feature, docs update, ...)?
✨ Feature
What is the current behaviour (you can also link to an open issue here)?
The function
mapPermission
can be useful to retrieve the bytes32 hex value of a permission given its name. However, it is not available.What is the new behaviour (if this is a feature change)?
Export the
mapPermission
function to make it available in the library + refactor it to returnnull
when the permission name is not known instead of throwing an error.