Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Fee Details no longer works on Westend and Kusama #4770

Closed
2 tasks done
trevor-crypto opened this issue Jun 12, 2024 · 7 comments
Closed
2 tasks done

Query Fee Details no longer works on Westend and Kusama #4770

trevor-crypto opened this issue Jun 12, 2024 · 7 comments
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.

Comments

@trevor-crypto
Copy link

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

The RPC call - payment_queryFeeDetails and state call TransactionPaymentApi_query_fee_details are no longer working.

On Westend, it appears that the state call is no longer available, but the RPC call still remains, but ultimately calls the same code which is no longer there, but the RPC call is still present.

The error is as follows:

Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
WASM backtrace:\nerror while executing at wasm backtrace:
    0: 0x71d10 - <unknown>!rust_begin_unwind
    1: 0xc920 - <unknown>!core::panicking::panic_fmt::h7d22643b0becf577
    2: 0x2664af - <unknown>!TransactionPaymentApi_query_fee_details")

Is there another endpoint that is available but undocumented, where fees can be calculated?

Thanks

Steps to reproduce

No response

@trevor-crypto trevor-crypto added I10-unconfirmed Issue might be valid, but it's not yet known. I2-bug The node fails to follow expected behavior. labels Jun 12, 2024
@bkontur
Copy link
Contributor

bkontur commented Jun 12, 2024

@serban300 Just in case, isn't it the same issue we had yesterday? That extrinsic should include CheckMetadataHash extension stuff?

@bkontur
Copy link
Contributor

bkontur commented Jun 12, 2024

@trevor-crypto How did you trigger that calls? And how did you prepare data for those calls?

@trevor-crypto
Copy link
Author

@bkontur I am using my own substrate library .

It can also be replicated through polkadot.js:
image

@bkontur
Copy link
Contributor

bkontur commented Jun 12, 2024

@trevor-crypto and how or where do you construct xt_hex_prefixed: &str? Could you please point me to that code?

@trevor-crypto
Copy link
Author

@bkontur Sure.

You first construct the extrinsic.

Then the extrinsic is encoded

Then you can convert it to hex

Take a look at the examples for more details.

The code was and is still working for the chains that haven't been updated, which is why I think this was a breaking change.

@bkontur
Copy link
Contributor

bkontur commented Jun 12, 2024

@trevor-crypto
Copy link
Author

@bkontur Thanks! This does seem to be the issue. I've verified using PolkadotJS for now.

Quite the misleading error message!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

No branches or pull requests

2 participants