mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-03 15:57:08 +00:00
Version bump, fixes (#572)
* Bump version, don't propose invalid blocks * Fix build. * Fixes. * More fixes. * Fix tests. * Fix more tests * More tests fixed
This commit is contained in:
1 parent
314e2eeaf9
commit
f12221c4e6
4 files changed
+10
-5
No files matched your search
@@ -147,8 +147,10 @@ impl<B: LocalBackend<Block>> PolkadotApi for Client<B, LocalCallExecutor<B, Nati
|
||||
fn inherent_extrinsics(&self, at: &BlockId, inherent_data: InherentData) -> Result<Vec<UncheckedExtrinsic>> {
|
||||
use codec::{Encode, Decode};
|
||||
|
||||
let runtime_version = self.runtime_version_at(at)?;
|
||||
|
||||
with_runtime!(self, at, || {
|
||||
let extrinsics = ::runtime::inherent_extrinsics(inherent_data);
|
||||
let extrinsics = ::runtime::inherent_extrinsics(inherent_data, runtime_version);
|
||||
extrinsics.into_iter()
|
||||
.map(|x| x.encode()) // get encoded representation
|
||||
.map(|x| Decode::decode(&mut &x[..])) // get byte-vec equivalent to extrinsic
|
||||
|
||||
Reference in new issue
Block a user