Skip to content

Commit

Permalink
Merge pull request #35 from sora-xor/fix/types_for_mst_transaction
Browse files Browse the repository at this point in the history
Update types for mst
  • Loading branch information
Pavel authored Dec 15, 2021
2 parents b6eeaca + c056680 commit 2815f57
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion custom_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,19 @@
]
},
"ValidationFunction": "Null",
"Timepoint": "BridgeTimepoint",
"Timepoint": {
"type": "struct",
"type_mapping": [
[
"height",
"BlockNumber"
],
[
"index",
"u32"
]
]
},
"BTreeMap<RewardReason,Balance>": "Vec<(RewardReason,Balance)>",
"BTreeSet<SignatureParams>": "Vec<SignatureParams>",
"BTreeSet<H256>": "Vec<H256>",
Expand Down
2 changes: 1 addition & 1 deletion query.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
type_registry=load_type_registry_file('./custom_types.json'),
)

block_hash = substrate.get_block_hash(block_id=1829015)
block_hash = substrate.get_block_hash(block_id=3077347)

extrinsics = substrate.get_block(block_hash=block_hash)['extrinsics']

Expand Down

0 comments on commit 2815f57

Please sign in to comment.