Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Jan 18, 2025
1 parent 124bba9 commit 7b28b57
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/substrate_metadata/lib/metadata/polkadart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ class $PolkadartMetadataCodec implements Codec<PolkadartMetadata> {
SequenceCodec(PalletMetadata.codec).encodeTo(metadata.pallets, output);
ExtrinsicMetadata.codec.encodeTo(metadata.extrinsic, output);
TypeIdCodec.codec.encodeTo(metadata.runtimeTypeId, output);
SequenceCodec(ApiMetadata.codec).encodeTo(metadata.apis!, output);
OuterEnumMetadata.codec.encodeTo(metadata.outerEnums!, output);
CustomMetadata.codec.encodeTo(metadata.custom!, output);
SequenceCodec(ApiMetadata.codec).encodeTo(metadata.apis, output);
OuterEnumMetadata.codec.encodeTo(metadata.outerEnums, output);
CustomMetadata.codec.encodeTo(metadata.custom, output);
}

@override
Expand All @@ -101,9 +101,9 @@ class $PolkadartMetadataCodec implements Codec<PolkadartMetadata> {
size += SequenceCodec(PalletMetadata.codec).sizeHint(metadata.pallets);
size += ExtrinsicMetadata.codec.sizeHint(metadata.extrinsic);
size += TypeIdCodec.codec.sizeHint(metadata.runtimeTypeId);
size += SequenceCodec(ApiMetadata.codec).sizeHint(metadata.apis!);
size += OuterEnumMetadata.codec.sizeHint(metadata.outerEnums!);
size += CustomMetadata.codec.sizeHint(metadata.custom!);
size += SequenceCodec(ApiMetadata.codec).sizeHint(metadata.apis);
size += OuterEnumMetadata.codec.sizeHint(metadata.outerEnums);
size += CustomMetadata.codec.sizeHint(metadata.custom);
return size;
}
}
Expand Down Expand Up @@ -1375,10 +1375,9 @@ class $CustomMetadataCodec implements Codec<CustomMetadata> {

@override
int sizeHint(CustomMetadata metadata) {
int size = BTreeMapCodec(
return BTreeMapCodec(
keyCodec: StrCodec.codec, valueCodec: CustomMetadataEntry.codec)
.sizeHint(metadata.map);
return size;
}
}

Expand Down

0 comments on commit 7b28b57

Please sign in to comment.