Migrate the node project. #1126
Migrate the node project. #1126mnaamani merged 6 commits intoJoystream:substrate_version_upgradefrom
Conversation
| Offences: pallet_offences::{Module, Call, Storage, Event}, | ||
| RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, | ||
| Sudo: pallet_sudo::{Module, Call, Config<T>, Storage, Event<T>}, | ||
| Contracts: pallet_contracts::{Module, Call, Config, Storage, Event<T>}, |
There was a problem hiding this comment.
Unless we are able to control who can deploy contracts, we should we keep the Contracts module out for now until we decide we need it.
There was a problem hiding this comment.
Ok. I'll remove all traces of the contracts pallet.
| }; | ||
|
|
||
| /// The SignedExtension to the basic transaction logic. | ||
| pub type SignedExtra = ( |
There was a problem hiding this comment.
If the contracts module is in the runtime, I think there needs to be a signed extension, something about checks on Gas?
There was a problem hiding this comment.
I'll remove all traces of the contracts pallet.
|
The node is building, runs and with a dev chain blocks are being produced. I'm testing with some scripts here: https://github.com/mnaamani/joystream/tree/iznik-api-examples/api-examples Based on the latest types library and updated polkadot-js/api as per #1124 Having issues with submitting transactions: We may not be using the correct version of polkadot-js/api or there is a misconfiguration in the node/runtime |
|
The travis build is taking very long time to build, and is not completing, so we may need to tweak the .travis.yml file |
Perhaps I'm not properly constructing types ? @Lezek123 |
|
Tried to reproduce. I used https://github.com/shamil-gadelshin/substrate-runtime-joystream/tree/migrate_runtime_module4 to start a development node and https://github.com/mnaamani/joystream/tree/iznik-api-examples/api-examples to run the scripts. I ran: The output of the second one also confirmed that: |
Those were the steps I followed. I tried rebuilding the node a second time but I'm still getting the same issue. |
|
Part of this PR |
| type Hashing = BlakeTwo256; | ||
| type AccountId = AccountId; | ||
| type Lookup = Indices; | ||
| type Lookup = IdentityLookup<AccountId>; |
There was a problem hiding this comment.
With this change, as identified by @shamil-gadelshin we were required to add "Address": "AccountId","LookupSource": "AccountId" to the types registration in polkadot-js api, which isn't done automatically by the api library unless it detects the node-template specName in the runtime version.
You were correct. The change was specifically how the address lookup is done and requires a change in the types registration: https://github.com/Joystream/joystream/pull/1126/files#r469018972 |
Node project was converted to the Substrate version 2.0.0rc4
Comments: