Skip to content

Commit

Permalink
Merge pull request #27 from sora-xor/fix/types-upgrade-version
Browse files Browse the repository at this point in the history
Fix/types upgrade version
  • Loading branch information
Pavel authored Sep 10, 2021
2 parents 4c5ee63 + 1ab2127 commit b5cfcd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion custom_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"Sr25519Public": "[u8; 32]",
"SessionKeys2": "(Sr25519Public, Sr25519Public)",
"SessionKeys3": "(Sr25519Public, Sr25519Public, Sr25519Public)",
"AccountInfo": "AccountInfoWithDualRefCount",
"Address": "AccountIdAddress",
"Amount": "i128",
"AmountOf": "Amount",
Expand Down Expand Up @@ -1572,6 +1571,7 @@
"BTreeSet<SignatureParams>": "Vec<SignatureParams>",
"BTreeSet<H256>": "Vec<H256>",
"BTreeSet<AssetId>": "Vec<AssetId>",
"BTreeSet<AssetIdOf>": "Vec<AssetIdOf>",
"BTreeSet<AccountId>": "Vec<AccountId>",
"BTreeSet<LiquiditySourceType>": "Vec<LiquiditySourceType>",
"ecdsa::Public": "[u8; 33]",
Expand All @@ -1590,5 +1590,9 @@
}
}
}
],
"runtime_upgrades": [
[0, 1], [489600, 3], [616533, 4], [1243341, 7], [1403659, 8],
[1744716, 9]
]
}
4 changes: 2 additions & 2 deletions query.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from substrateinterface import SubstrateInterface

substrate = SubstrateInterface(
url='wss://ws.framenode-8.s5.stg1.sora2.soramitsu.co.jp/',
url='wss://mof2.sora.org/',
type_registry_preset='default',
type_registry=load_type_registry_file('./custom_types.json'),
)

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

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

Expand Down

0 comments on commit b5cfcd5

Please sign in to comment.