-
Notifications
You must be signed in to change notification settings - Fork 47
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
Update polkadot-v0.9.29 #1053
Update polkadot-v0.9.29 #1053
Conversation
3841550
to
8782941
Compare
Currently this is blocked, because a toolchain update is needed for the stabilised I have checked whether
|
efbe9b7
to
1bc262b
Compare
1bc262b
to
00f9b03
Compare
app-libs/stf/src/lib.rs
Outdated
@@ -81,11 +81,10 @@ pub enum StfError { | |||
StorageHashMismatch, | |||
InvalidStorageDiff, | |||
} | |||
#[allow(clippy::large_enum_variant)] |
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 clippy lint large_enum_variant should be suppressed let me know and I will drop the patch for 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.
One remark, otherwise it looks good!
cli/Cargo.toml
Outdated
my-node-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "szp/polkadot-v0.9.29" } | ||
pallet-evm = { optional = true, git = "https://github.com/integritee-network/frontier.git", branch = "polkadot-v0.9.29" } | ||
substrate-api-client = { features = ["ws-client"], git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.29" } | ||
substrate-client-keystore = { git = "https://github.com/scs/substrate-api-client.git", branch = "polkadot-v0.9.29" } | ||
teerex-primitives = { git = "https://github.com/integritee-network/pallets.git", branch = "szp/polkadot-v0.9.29" } |
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.
here, we still need to update the branch afterwards
47a270f
to
d6d6697
Compare
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.
Nice, looks good to me. I have only one remark!
@@ -67,7 +67,7 @@ pub fn ed25519_self_signed_certificate( | |||
) -> WebSocketResult<Certificate> { | |||
let mut params = CertificateParams::new(vec![common_name.to_string()]); | |||
let now = SystemTime::now().duration_since(UNIX_EPOCH).expect("Error: UNIX_EPOCH"); | |||
let issue_ts = TzUtc.timestamp(now.as_secs() as i64, 0); | |||
let issue_ts = TzUtc.timestamp_opt(now.as_secs() as i64, 0).unwrap(); |
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 you know some context about the None
here, I would prefer an expect
. If it is something that never fails in our case, it is even better, and you can write like: expect("fails never because of ....; qed)
.
If it can fail, I would prefer to actually return a result here.
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.
This should not fail as long as now.as_secs()
(aka secs
) fit into i64
. The as
keyword will silently convert it into -1 (e.g. when secs == u64::MAX
) and that's when it would fail.
Revised in 89e7ac2.
…tamp()` function
… `timestamp()` function
… `timestamp()` function
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.
The great merge has arrived!
Fixes #1021