Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Bad metadata for TransactionPaymentApi.query_info call in Metadata v15. #14584

@ypopovych

Description

@ypopovych

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

While working on the Swift SDK I found that the new RuntimeApi metadata has inconsistency for the TransactionPaymentApi.query_info call (and query_fee_details call too).

Right now the call is described as:

TransactionPaymentApi_query_info {
    uxt: sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic(Vec<u8>),
    len: u32
}

UncheckedExtrinsic has the sequence type inside, which should be encoded with a size prefix. But in reality, call expects uxt to be encoded without prefix, as fixed data. This inconsistency prevents the dynamic encoding of this runtime call.

Steps to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions