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

Runtime panicked: Bad input data provided to validate_transaction: Invalid length prefix #738

Closed
metmirr opened this issue Dec 6, 2022 · 4 comments

Comments

@metmirr
Copy link

metmirr commented Dec 6, 2022

Hello, I am using subxt to read data and submit transactions. I have the latest substrate-node-template running and I am using this example as a starter examples/balance_transfer.rs.

Error details:

Error: Rpc(ClientError(Call(Custom(ErrorObject { code: ServerError(1002), message: "Verification Error: Runtime error: Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Invalid length prefix", data: Some(RawValue("RuntimeApi(\"Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Invalid length prefix\")")) }))))

Additional notes: I can read storage without any issues. Also, submit transactions from the polkadot.js.org/apps

@niklasad1
Copy link
Member

niklasad1 commented Dec 6, 2022

hey @metmirr

Can you please specify which substrate rev your using and the code use in examples/balance_transfer.rs?

I tried running the balance transfer against substrate b1396f and it worked fine.

Please not that the substrate node template runtime is a bit different compared to polkadot/substrate node/kusama/westend and our integration tests are executed against polkadot (every day) so it might not work reliable in all cases.

@metmirr
Copy link
Author

metmirr commented Dec 6, 2022

Thanks for the quick reply.

I am using the main branch which uses the branch: https://github.com/paritytech/substrate/tree/polkadot-v0.9.32, I use the exact same code in balance_transfer.rs

@niklasad1
Copy link
Member

alright, "subxt master" is only tested against the polkadot "master" so we don't really keep track of backwards compatibility with older polkadot/substrate versions.

you can find more info about that here: #626

Perhaps try some older version of subxt such as v0.25 or v0.24 might good for subxt to have such compatibility matrix, it's quite hard to get that.

@metmirr
Copy link
Author

metmirr commented Dec 6, 2022

I see, thank you. I will close the issue then. Perhaps would it make sense to add that info to the readme. As you can guess most of the starters use node template which is pointed to some stable version of the substrate.

@metmirr metmirr closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants