-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate the node project. #1126
Migrate the node project. #1126
Conversation
@@ -724,8 +609,8 @@ construct_runtime!( | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
@@ -110,7 +106,7 @@ impl system::Trait for Runtime { | |||
type Hash = Hash; | |||
type Hashing = BlakeTwo256; | |||
type AccountId = AccountId; | |||
type Lookup = Indices; | |||
type Lookup = IdentityLookup<AccountId>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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: