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.
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.