Closed ShoyuVanilla closed 22 hours ago
/cc @pkhry any idea?
/cc @pkhry any idea?
Let me take a quick look
The reason for this is that the WASM loader thing calls Metadata_metadata
, which only returns V14 metadata. We should use Metadata_metadata_at_version
and Metadata_versions
to extract the appropriate metadata (V15 is possible, V14 if not)
@ShoyuVanilla if you get the chance, would you be able to try again with the master
branch of Subxt? Things should work properly for you now :)
@ShoyuVanilla if you get the chance, would you be able to try again with the master branch of Subxt? Things should work properly for you now :)
Actually, I've tried with pkhry's PR branch already and it worked nicely 😄 Thanks for your great work!
1720 introduced a way to generate metadata from runtime wasm files, but when I try generate it like;
The resulting code expanded with
cargo-expand
shows aswhile expanding macros in previous ways like
the
RUNTIME_APIS
is filled likeI've tried with wasm files from https://github.com/polkadot-fellows/runtimes/releases/ and https://github.com/paritytech/subxt/blob/master/artifacts/westend_runtime.wasm but all of them are expanded into empty
RUNTIME_APIS