Skip to main content

Questions tagged [wasm]

The tag has no usage guidance.

0 votes
1 answer
17 views

Suddenly TransactionPaymentApi_query_info is generating wasm errors at block height 21455372 (maybe runtime 1.2.5?)

I was using the following JSON-RPC method to hit query_info, but suddenly got a wasm error from today. Is this an effect of the runtime update? If so, what changes are needed? % curl -H "Content-...
Koichi Tsujino's user avatar
0 votes
1 answer
27 views

XVM Ink Wasm to EVM: Contract Reverted. Decoding Failed

I tried to deploy a XVM Wasm contract wrapping around a deployed EVM Solidity contract in my local node. Steps Deploy my EVM Solidity contract via Remix connecting to my local node //SPDX-License-...
Russo's user avatar
  • 1,193
1 vote
0 answers
13 views

How can I manage the issue of excessive gas estimation in MetaMask when deploying a dapp contract on my WASM+EVM chain and calling its functions?

i am trying to deploy a dapp contract on my WASM + EVM based substrate chain but while calling the contract functions it gives me high gas estimation, how can i handle this issue?
Arunjot Singh's user avatar
1 vote
1 answer
49 views

How to debug an extrinsic (the runtime code) after migration to wasm-only execution in Polkadot?

Polkadot is moving away from native execution mode and in the first step they removed the native execution mode. This means that the --execution Native does not work anymore which is the solution in ...
Shabgard's user avatar
0 votes
1 answer
53 views

IEEE 754 Floating Point Numbers wasm impelementation

We are looking to enable reproducible floating point operations on chain by implementing the IEEE 754 standard as an on-chain wasm function. As discussed in this stackoverflow post, substrate does not ...
Mathis Wellmann's user avatar
1 vote
1 answer
77 views

`The trait Deserialize is not implemented for a` GenesisConfig

I am in the process of upgrading a project from version 0.9.42 to 1.6.0, where the BuildGenesisConfig was added and BuildGenesis was deprecated, and I encounter an error (the trait Serialize is not ...
Benjamin Gallois's user avatar
0 votes
0 answers
19 views

Why are any of the `RuntimeApiSubsystemClient` trait methods marked `async` when its not needed?

The trait RuntimeApiSubsystemClient and its implementation DefaultSubsystemClient (https://github.com/paritytech/polkadot-sdk/blob/c421b87978404954dec4555895d50ef028b73cf0/polkadot/node/subsystem-...
Mathis Wellmann's user avatar
0 votes
0 answers
22 views

is the endpoint TransactionPaymentApi_query_info usable on current Westend testnet?

I was trying to query payment_queryInfo on current Westend testnet, and the following payload used to works at spec 9430. { "jsonrpc": "2.0", "method": "...
johnhckuo's user avatar
  • 123
2 votes
0 answers
25 views

Is it possible to register parathread with compact.compressed wasm file

In official guides they use wasm built with export-genesis-wasm command to register a parathread/parachain: https://youtu.be/BaWcQxKRFmM?t=134 https://docs.substrate.io/tutorials/build-a-parachain/...
Данила Алексеев's user avatar
3 votes
2 answers
32 views

Is there any way to extract "method" and "params" of unchecked extrinsic using ScaleCode/TypeInfo traits?

I'm wondering if there is any way to extract information about method and parameter of Extrinsic(Unchecked/CheckedExtrinsic) using TypeInfo and Scale codec. In polkadotJs there is toString method on ...
Mateusz Nowakowski's user avatar
0 votes
0 answers
34 views

Custom RPC Error on sp_api::decl_runtime_apis!

We are adding a custom rpc and following along with https://github.com/AlexD10S/susbtrate-node-template/blob/rpc-custom-methods/pallets/template/rpc/runtime-api/src/lib.rs and https://github.com/...
donkeydonkey's user avatar
0 votes
0 answers
20 views

What is the usecase of `PassBy` trait bound

While working on types between Runtime and Host functions, types going from Runtime to host function requires a PassBy trait bound while types going from Host function to Runtime does not need that ...
vedhavyas's user avatar
  • 155
2 votes
0 answers
40 views

wasm compilation for later rust versions

I am running a parachain on Ubuntu 22.04 jammy. where i am using polkadot 9.43. I see that in release notes it is said that nightly-2023-05-22 was tested for this substrate version https://github.com/...
cocokick's user avatar
  • 165
2 votes
1 answer
49 views

What is default --execution <strategy> and recommended value for node/validator operator?

When executing node as a validator, the documentation states here that there is differents execution strategy available, however as this is optionnal switches, what is default if nothing is set ? ...
Floy's user avatar
  • 21
1 vote
1 answer
172 views

Why is serde always std-gated in substrate?

I regularly see serde implemented for various structs across the substrate ecosystem, usually in the single-liner form below. Why is that gated behind the std feature? In serde's documentation, it's ...
Nate Armstrong's user avatar

15 30 50 per page
1
2 3 4 5
7