Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

Commit

Permalink
docs(ScaleSet): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yjhmelody committed Apr 23, 2021
1 parent 784ca48 commit cea81c5
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions assembly/ScaleSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Codec } from "./interfaces/Codec";
import { UnwrappableCodec } from "./interfaces/UnwrappableCodec";

/**
* @description SCALE Codec support for native Map type
* @description SCALE Codec support for native Set type
*/
export class ScaleSet<T extends Codec>
extends Set<T>
Expand All @@ -19,14 +19,14 @@ export class ScaleSet<T extends Codec>
}

/**
* The number of bytes this Map has
* The number of bytes this Set has
*/
@inline
encodedLength(): i32 {
return this.toU8a().length;
}
/**
* Convert ScaleMap to u8[]
* Convert it to u8[]
* Length is encoded first, followed by all key and value encodings concatenated
*/
toU8a(): u8[] {
Expand Down Expand Up @@ -54,11 +54,7 @@ export class ScaleSet<T extends Codec>

return bytesReader.currentIndex();
}
/**
* @description Overloaded == operator
* @param a instance of ExtrinsicData
* @param b Instance of ExtrinsicData
*/

@operator("==")
eq(other: ScaleSet<T>): bool {
const aLen = this.size;
Expand All @@ -77,11 +73,6 @@ export class ScaleSet<T extends Codec>
return true;
}

/**
* @description Overloaded != operator
* @param a instance of ExtrinsicData
* @param b Instance of ExtrinsicData
*/
@operator("!=")
notEq(other: ScaleSet<T>): bool {
return !this.eq(other);
Expand Down

0 comments on commit cea81c5

Please sign in to comment.