@ercworldio/blockchain-shared 1.0.3-dev.3-PROJ-1296.4 → 1.0.3-dev.3-PROJ-1296.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -89,8 +89,8 @@ class AccessControlEvents {
|
|
|
89
89
|
* @returns The parsed event with role mapped to human-readable name and gasUsed converted to number
|
|
90
90
|
*/
|
|
91
91
|
mutateRoleGrantedEvent(event) {
|
|
92
|
-
const
|
|
93
|
-
return Object.assign(Object.assign({}, event), { gasUsed: Number(event.gasUsed),
|
|
92
|
+
const roleName = this.getRoleName(event.role);
|
|
93
|
+
return Object.assign(Object.assign({}, event), { gasUsed: Number(event.gasUsed), roleName });
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* Parses the RoleRevoked event object.
|
|
@@ -98,8 +98,8 @@ class AccessControlEvents {
|
|
|
98
98
|
* @returns The parsed event with role mapped to human-readable name and gasUsed converted to number
|
|
99
99
|
*/
|
|
100
100
|
mutateRoleRevokedEvent(event) {
|
|
101
|
-
const
|
|
102
|
-
return Object.assign(Object.assign({}, event), { gasUsed: Number(event.gasUsed),
|
|
101
|
+
const roleName = this.getRoleName(event.role);
|
|
102
|
+
return Object.assign(Object.assign({}, event), { gasUsed: Number(event.gasUsed), roleName });
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
/** Singleton instance of AccessControlEvents */
|
package/package.json
CHANGED