polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
240 stars 111 forks source link

get_payment_info() breaks because of RPC always returning WeightV1 #264

Closed arjanz closed 1 year ago

arjanz commented 1 year ago

payment_queryInfo used to return the WeightV1 or WeightV2 type, depending on the runtime, which could as is be SCALE encoded regardless of being a Struct or u64. Now it has to be checked and modified to Struct if necessary.

https://github.com/paritytech/substrate/pull/12633