Questions tagged [wasm]
The wasm tag has no usage guidance.
12 questions from the last 365 days
0
votes
0
answers
6
views
Substrate frame-metadata version Confliction [closed]
There seems to be a frame-metadata crate error where 2 versions are being referenced which is causing the error. The 2 versions are v16.0.0 and v18.0.0. The issue is that the substrate-wasm-builder ...
1
vote
0
answers
23
views
Why is runtime's WASM maximum allocated memory hardcoded to 32MiB?
In sp-core it is defined the maximum memory that can be allocated by the runtime. The current max possible allocation is 32 MiB:
// substrate/primitives/core/src/lib.rs (snip)
/// The maximum number ...
0
votes
1
answer
55
views
Allocate extra WASM memory to generate large chainspecs
In some cases, generating a chainspec may overload the memory allocated by the WASM blob which results in an Requested allocation size is too large error:
❯ staking-node build-spec --disable-default-...
4
votes
2
answers
82
views
Alternative to BlakeTwo256 for WASM Compatibility in a no_std Environment in Rust
I'm developing a Rust script that I need to convert to WebAssembly (WASM). In this script, I'm using the BlakeTwo256 hasher, which is imported from the sp_runtime crate. However, I'm unable to compile ...
0
votes
0
answers
10
views
calldata in the substrate contract ui
how can I get the calldata of the function in the wasm contract in the substrate contract UI ?
I was trying to mimic the behaviour of the upgradeToAndCall() of the solidity,but in that they are ...
0
votes
1
answer
20
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-...
0
votes
1
answer
31
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-...
1
vote
0
answers
15
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?
1
vote
1
answer
52
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 ...
0
votes
1
answer
54
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 ...
1
vote
1
answer
81
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 ...
0
votes
0
answers
20
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-...