[Bug] getSchema
returns a schema name that contains the dynamic part for MappingWithGrouping
#350
Labels
bug
Something isn't working
I'm submitting a...
bug report
Summary
When using the function
getSchema
with data keys that are of typeMappingWithGrouping
, the schema returned contains the dynamic part like<address>
in the example below.This creates an issue as when comparing, or running tests (screenshots below), as it should return either:
AddressPermissions:Permissions
orAddressPermissions:Permissions:<address>
Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
The issue comes from the internal logic of the function that parse schemas. They append the
:{address}
at the end (line 134 below)erc725.js/src/lib/schemaParser.ts
Lines 116 to 136 in 8b1d1ff
Proposal
<address>
(the dynamic part).dynamicKeyPart
that contains the dynamic keygetHumanReadableKey
(something like this) that would return the first part of the data key as words + the dynamic part, like in the screenshot above. For instanceThe text was updated successfully, but these errors were encountered: