-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: runtime metadata hash verification (#5467)
* feat: runtime metadata hash verification * feat: metadata hash in extrinsic creation * feat: add metadata-hash features in build commands in config.toml * fix: correct metadatahsh while tx construction * feat: dont do metadata hash verification for state chain client * feat: set metadata-hash feature in coverage check in ci * feat: set metadata-hash feature in coverage check in ci 2 * feat: set metadata-hash feature in coverage check in ci 3 * fix: correctly modify ci command * fix: minor * chore: optional build with metadata-hash * fix: cargo audit * chore: sort dependencies alphabetically --------- Co-authored-by: Daniel <daniel@chainflip.io>
- Loading branch information
1 parent
09292c9
commit 5a4bc00
Showing
10 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
fn main() { | ||
#[cfg(feature = "std")] | ||
#[cfg(all(feature = "std", not(feature = "metadata-hash")))] | ||
{ | ||
substrate_wasm_builder::WasmBuilder::new() | ||
.with_current_project() | ||
.export_heap_base() | ||
.import_memory() | ||
.build(); | ||
} | ||
|
||
#[cfg(all(feature = "std", feature = "metadata-hash"))] | ||
{ | ||
substrate_wasm_builder::WasmBuilder::new() | ||
.with_current_project() | ||
.export_heap_base() | ||
.import_memory() | ||
.enable_metadata_hash("FLIP", 18) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters