Adjust Weight alias for WeightV0 injection (#5462)
* Adjust Weight alias for WeightV0 injection * 9.13.3
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
"./detectPackage.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"version": "9.13.2",
|
||||
"version": "9.13.3",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
@@ -28,9 +28,9 @@
|
||||
"@polkadot/x-bigint": "^10.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/types": "9.13.2",
|
||||
"@polkadot/types-augment": "9.13.2",
|
||||
"@polkadot/types-support": "9.13.2",
|
||||
"@polkadot/types": "9.13.3",
|
||||
"@polkadot/types-augment": "9.13.3",
|
||||
"@polkadot/types-support": "9.13.3",
|
||||
"@polkadot/util-crypto": "^10.3.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,17 +87,11 @@ export class Vec<T extends Codec> extends AbstractArray<T> {
|
||||
|
||||
this.#Type = definition || setDefinition(typeToConstructor<T>(registry, Type));
|
||||
|
||||
try {
|
||||
this.initialU8aLength = (
|
||||
isU8a(decodeFrom)
|
||||
? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type)
|
||||
: decodeVec(registry, this, decodeFrom, startAt, this.#Type)
|
||||
)[0];
|
||||
} catch (e) {
|
||||
console.error(decodeFrom, length, startAt);
|
||||
|
||||
throw e;
|
||||
}
|
||||
this.initialU8aLength = (
|
||||
isU8a(decodeFrom)
|
||||
? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type)
|
||||
: decodeVec(registry, this, decodeFrom, startAt, this.#Type)
|
||||
)[0];
|
||||
}
|
||||
|
||||
public static with<O extends Codec> (Type: CodecClass<O> | string): CodecClass<Vec<O>> {
|
||||
|
||||
Reference in New Issue
Block a user