mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 03:47:59 +00:00
Add support for generating metadata from runtime wasm files (#1720)
closes #1660
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#[subxt::subxt(runtime_path = "../../../../artifacts/westend_runtime.wasm")]
|
||||
mod runtime {}
|
||||
|
||||
#[subxt::subxt(runtime_path = "../../../../artifacts/westend_runtime.compact.compressed.wasm")]
|
||||
mod runtime_compressed {}
|
||||
|
||||
fn main() {
|
||||
use runtime;
|
||||
use runtime_compressed;
|
||||
|
||||
let _ = runtime::system::events::CodeUpdated;
|
||||
let _ = runtime_compressed::system::events::CodeUpdated;
|
||||
}
|
||||
Reference in New Issue
Block a user