The [CheckMetadataHash
] transaction extension.
The extension for optionally checking the metadata hash. For information how it works and what
it does exactly, see the docs of [CheckMetadataHash
].
Integration
As any transaction extension you will need to add it to your runtime transaction extensions:
As the extension requires the RUNTIME_METADATA_HASH
environment variable to be present at
compile time, it requires a little bit more setup. To have this environment variable available
at compile time required to tell the substrate-wasm-builder
to do so:
As generating the metadata hash requires to compile the runtime twice, it is
recommended to only enable the metadata hash generation when doing a build for a release or when
you want to test this feature.