New answers tagged wasm
0
votes
Allocate extra WASM memory to generate large chainspecs
Note: this is a hack and not a clean solution. With this hack, you can generate the new chainspec and revert the changes made.
Change the MAX_POSSIBLE_ALLOCATION to a value large enough to cover the ...
1
vote
Alternative to BlakeTwo256 for WASM Compatibility in a no_std Environment in Rust
sp-runtime-interface compiled without std will force to be compiled in a 32bits environment, but you want to compile to wasm which is 32bits AFAIK.
So you can compile to std for testing with:
cargo ...
0
votes
Alternative to BlakeTwo256 for WASM Compatibility in a no_std Environment in Rust
Try another version of sp_runtime: https://paritytech.github.io/polkadot-sdk/master/src/sp_runtime/traits.rs.html#1028
Latest version no longer requires std for BlakeTwo256
Top 50 recent answers are included
Related Tags
wasm × 103ink × 22
runtime × 22
smart-contract × 13
rust × 12
pallet × 8
substrate-node-template × 8
no-std × 7
pallet-contracts × 7
parachain × 6
wasmi × 6
error × 6
benchmark × 6
substrate-node × 5
solidity × 5
evm × 4
genesis × 4
openbrush × 4
polkadot × 3
scale-codec × 3
contracts × 3
cargo × 3
wasmtime × 3
cargo-contract × 3
runtime-api × 3