@@ -4,7 +4,7 @@ import { Codec } from "./interfaces/Codec";
44import { UnwrappableCodec } from "./interfaces/UnwrappableCodec" ;
55
66/**
7- * @description SCALE Codec support for native Map type
7+ * @description SCALE Codec support for native Set type
88 */
99export class ScaleSet < T extends Codec >
1010 extends Set < T >
@@ -19,14 +19,14 @@ export class ScaleSet<T extends Codec>
1919 }
2020
2121 /**
22- * The number of bytes this Map has
22+ * The number of bytes this Set has
2323 */
2424 @inline
2525 encodedLength ( ) : i32 {
2626 return this . toU8a ( ) . length ;
2727 }
2828 /**
29- * Convert ScaleMap to u8[]
29+ * Convert it to u8[]
3030 * Length is encoded first, followed by all key and value encodings concatenated
3131 */
3232 toU8a ( ) : u8 [ ] {
@@ -54,11 +54,7 @@ export class ScaleSet<T extends Codec>
5454
5555 return bytesReader . currentIndex ( ) ;
5656 }
57- /**
58- * @description Overloaded == operator
59- * @param a instance of ExtrinsicData
60- * @param b Instance of ExtrinsicData
61- */
57+
6258 @operator ( "==" )
6359 eq ( other : ScaleSet < T > ) : bool {
6460 const aLen = this . size ;
@@ -77,11 +73,6 @@ export class ScaleSet<T extends Codec>
7773 return true ;
7874 }
7975
80- /**
81- * @description Overloaded != operator
82- * @param a instance of ExtrinsicData
83- * @param b Instance of ExtrinsicData
84- */
8576 @operator ( "!=" )
8677 notEq ( other : ScaleSet < T > ) : bool {
8778 return ! this . eq ( other ) ;
0 commit comments