Open chrisli30 opened 12 months ago
@imstar15 did we fix this issue?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
The type of the output of
getXcmWeight()
seems to be the same as those frompaymentInfo()
, but the console.log behavior is different from the original. They can’t be printed with variableName.toJSON(). We need to stick with the original Weight type definition as much as possible. Maybe the output needs to be defined as typeWeightV2
in polkadot.js?Code Reference: https://github.com/OAK-Foundation/oak.js/blob/764b69ebdc1e82e6c3a8c5f2f3e3c5b1dccfaae1/packages/adapter/src/chains/astar.ts#L56C5-L56C10
Expected
The weight type should be printable with a toJSON() method
Actual