Cleanup WeightV2 comments (#5259)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -10,6 +10,8 @@ const versioned: OverrideVersionedType[] = [
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
// nothing, API tracks master
|
||||
// (v2 weights are not yet the default)
|
||||
Weight: 'WeightV2'
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
@@ -81,7 +81,7 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata v14
|
||||
// weight v2 introduction
|
||||
minmax: [9300, undefined],
|
||||
types: {
|
||||
Weight: 'WeightV2'
|
||||
|
||||
@@ -55,7 +55,7 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata v14
|
||||
// weight v2 introduction
|
||||
minmax: [9300, undefined],
|
||||
types: {
|
||||
Weight: 'WeightV2'
|
||||
|
||||
@@ -98,7 +98,7 @@ const versioned: OverrideVersionedType[] = [
|
||||
}
|
||||
},
|
||||
{
|
||||
// metadata v14
|
||||
// weight v2 introduction
|
||||
minmax: [9300, undefined],
|
||||
types: {
|
||||
Weight: 'WeightV2'
|
||||
|
||||
Reference in New Issue
Block a user