ERC725Alliance / erc725.js

Package to interact with ERC725 smart contracts
Apache License 2.0
38 stars 29 forks source link

feat: map permission and permissions docs section #436

Closed CJ42 closed 4 months ago

CJ42 commented 5 months ago

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 return null when the permission name is not known instead of throwing an error.