git.delta.rocks / unique-network / refs/commits / d8b2d6d11657

difftreelog

allow conflicting type names

Yaroslav Bolyukin2023-04-20parent: #b86b27d.patch.diff
in: master

1 file changed

modified.docker/forkless-config/typeNames.jsonnetdiffbeforeafterboth
20 // There should be at most one element with this prefix20 // There should be at most one element with this prefix
21 if std.startsWith(field, prefix)21 if std.startsWith(field, prefix)
22 },22 },
23 makeObject(keyValues) = std.foldl(function(o, kv) if kv[0] in o then o else o + {[kv[0]]: kv[1]}, keyValues, {}),
23;24;
2425
25local typesRaw = {26local typesRaw = makeObject([
26 [typeName(id)]: id27 [typeName(id), id]
27 for id in std.range(0, std.length(chain._meta.types.types)-1)28 for id in std.range(0, std.length(chain._meta.types.types)-1)
28};29]);
2930
30local types = typesRaw + shortenPrefix(typesRaw, 'frame_system::AccountInfo<', 'AccountInfo');31local types = typesRaw + shortenPrefix(typesRaw, 'frame_system::AccountInfo<', 'AccountInfo');
3132