difftreelog
allow conflicting type names
in: master
1 file changed
.docker/forkless-config/typeNames.jsonnetdiffbeforeafterboth20 // There should be at most one element with this prefix20 // There should be at most one element with this prefix21 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;242525local 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]);293030local types = typesRaw + shortenPrefix(typesRaw, 'frame_system::AccountInfo<', 'AccountInfo');31local types = typesRaw + shortenPrefix(typesRaw, 'frame_system::AccountInfo<', 'AccountInfo');3132