-
Notifications
You must be signed in to change notification settings - Fork 12
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
Upgrade substrate to version 9.26 #482
base: main
Are you sure you want to change the base?
Conversation
Brian Hoang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Fix compile all test case
Fix some panic config
…e some unused code
Price feed orml oracle
Fix origin max encode len
Add price feed test
Fix pint feature genesis
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.
There is a lot of commented-out code in this PR. In my opinion it should be either:
a) Removed, or
b) Uncommented, or
c) Accompanied by some explanation why it's commented-out and when is it supposed to change.
Apart from these, I didn't find any problems with the code. Keep in mind though that I'm not familiar with this project. If there are some parts you're not sure about and you'd like to be reviewed closer, feel free to ask.
@@ -22,21 +22,23 @@ runtime-benchmarks = [ | |||
'dev-runtime/runtime-benchmarks', | |||
'shot-runtime/runtime-benchmarks', | |||
'pint-runtime/runtime-benchmarks', | |||
'polkadot-service/runtime-benchmarks' | |||
# 'polkadot-service/runtime-benchmarks' |
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.
Why is this line commented out? A temporary disable or was it supposed to be removed?
use cumulus_primitives_core::ParaId; | ||
use log::info; | ||
use polkadot_parachain::primitives::AccountIdConversion; | ||
use primitives::Block; | ||
// use polkadot_parachain::primitives::AccountIdConversion; |
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.
A line commented-out.
let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode())); | ||
// let block: Block = | ||
// generate_genesis_block(&config.chain_spec, state_version).map_err(|e| format!("{:?}", e))?; | ||
// let genesis_state = format!("0x{:?}", HexDisplay::from(&block.header().encode())); |
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.
Ditto.
info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" }); | ||
// info!("Parachain Account: {}", parachain_account); | ||
// info!("Parachain genesis state: {}", genesis_state); | ||
// info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" }); |
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.
Ditto.
// raw_downward_messages: vec![], | ||
// raw_horizontal_messages: vec![], | ||
// } | ||
// } |
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.
Ditto.
@@ -217,13 +223,15 @@ impl pallet_sudo::Config for Runtime { | |||
|
|||
impl cumulus_pallet_parachain_system::Config for Runtime { | |||
type Event = Event; | |||
type OnValidationData = (); | |||
// type OnValidationData = (); |
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.
Commented out code.
} | ||
|
||
impl orml_currencies::Config for Runtime { | ||
type Event = Event; | ||
// type Event = Event; |
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.
Ditto.
type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>; | ||
type TransactionByteFee = TransactionByteFee; | ||
// type TransactionByteFee = TransactionByteFee; |
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.
Ditto.
@@ -214,13 +220,15 @@ impl pallet_sudo::Config for Runtime { | |||
|
|||
impl cumulus_pallet_parachain_system::Config for Runtime { | |||
type Event = Event; | |||
type OnValidationData = (); | |||
// type OnValidationData = (); |
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.
Ditto.
} | ||
|
||
impl orml_currencies::Config for Runtime { | ||
type Event = Event; | ||
// type Event = Event; |
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.
Ditto.
Changes
Tests
Issues