mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 07:11:03 +00:00
wasm-builder: Make it easier to build a WASM binary (#4177)
Basically combines all the recommended calls into one `build_using_defaults()` call or `init_with_defaults()` when there are some custom changes required.
This commit is contained in:
@@ -17,9 +17,5 @@
|
||||
use substrate_wasm_builder::WasmBuilder;
|
||||
|
||||
fn main() {
|
||||
WasmBuilder::new()
|
||||
.with_current_project()
|
||||
.import_memory()
|
||||
.export_heap_base()
|
||||
.build()
|
||||
WasmBuilder::build_using_defaults();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user