Cleanup WeightV2 comments (#5259)

This commit is contained in:
Jaco
2022-10-05 10:51:56 +03:00
committed by GitHub
parent f53db7dbf0
commit a99f848adb
7 changed files with 10 additions and 4 deletions
+2
View File
@@ -2,6 +2,8 @@
## master
- **Important** While the API witll detect and decorate the weight type based on V1 or V2, the default `Weight` type (used in runtime calls and RPCs) has not been swapped from the old `u64` variant. This means that on new chains using `WeightV2`, the TS decorated type will still reflect the old version.
Changes:
- Adjust handling of `Weight` type for V2 structures
+1 -1
View File
@@ -207,7 +207,7 @@ const versioned: OverrideVersionedType[] = [
}
},
{
// metadata v14
// weight v2 introduction
minmax: [9300, undefined],
types: {
Weight: 'WeightV2'
@@ -10,6 +10,8 @@ const versioned: OverrideVersionedType[] = [
minmax: [0, undefined],
types: {
// nothing, API tracks master
// (v2 weights are not yet the default)
Weight: 'WeightV2'
}
}
];
+2
View File
@@ -10,6 +10,8 @@ const versioned: OverrideVersionedType[] = [
minmax: [0, undefined],
types: {
// nothing, API tracks master
// (v2 weights are not yet the default)
Weight: 'WeightV2'
}
}
];
+1 -1
View File
@@ -81,7 +81,7 @@ const versioned: OverrideVersionedType[] = [
}
},
{
// metadata v14
// weight v2 introduction
minmax: [9300, undefined],
types: {
Weight: 'WeightV2'
+1 -1
View File
@@ -55,7 +55,7 @@ const versioned: OverrideVersionedType[] = [
}
},
{
// metadata v14
// weight v2 introduction
minmax: [9300, undefined],
types: {
Weight: 'WeightV2'
+1 -1
View File
@@ -98,7 +98,7 @@ const versioned: OverrideVersionedType[] = [
}
},
{
// metadata v14
// weight v2 introduction
minmax: [9300, undefined],
types: {
Weight: 'WeightV2'