paritytech / subxt

Interact with Substrate based nodes in Rust or WebAssembly
Other
425 stars 248 forks source link

Panic using embedded client #505

Closed gregdhill closed 2 years ago

gregdhill commented 2 years ago

@niklasad1 perhaps you can help with this, I'm trying to integrate the embedded client as per your suggestion but I'm getting the following error:

thread 'tests::test_getters' panicked at 'called `Result::unwrap()` on an `Err` value: SubxtRuntimeError(Rpc(Request("{\"jsonrpc\":\"2.0\",\"error\":{\"code\":1002,\"message\":\"Verification Error: Runtime error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed\\nWASM backtrace:\\n\\n    0: 0x1b4c9f - <unknown>!rust_begin_unwind\\n    1: 0x10a03 - <unknown>!core::panicking::panic_fmt::hce09957bf3e88e08\\n    2: 0xe66fd - <unknown>!TaggedTransactionQueue_validate_transaction\\n\",\"data\":\"Runtime error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed\\nWASM backtrace:\\n\\n    0: 0x1b4c9f - <unknown>!rust_begin_unwind\\n    1: 0x10a03 - <unknown>!core::panicking::panic_fmt::hce09957bf3e88e08\\n    2: 0xe66fd - <unknown>!TaggedTransactionQueue_validate_transaction\\n\"},\"id\":6}")))', runtime/src/integration/mod.rs:86:6

See: https://github.com/interlay/interbtc-clients/pull/276

gregdhill commented 2 years ago

Closing as resolved, needed to use PolkadotExtrinsicParams instead of SubstrateExtrinsicParams because our runtime does not support the assets pallet.

jsdw commented 2 years ago

Aha, fantastic! I'm sorry that the error was so unhelpful though..