Skip to main content

New answers tagged

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 ...
gpestana's user avatar
  • 263
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 ...
gui's user avatar
  • 231
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
Tin Chung's user avatar
  • 348

Top 50 recent answers are included