Skip to content

Commit

Permalink
rotate fix (#1074)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert G. Jakabosky <rjakabosky+neopallium@neoawareness.com>
  • Loading branch information
adamdossa and Neopallium authored Aug 10, 2021
1 parent 6c6f964 commit b95b9f8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polymesh"
version = "3.1.0"
version = "3.1.1"
authors = ["Polymath"]
build = "build.rs"
edition = "2018"
Expand Down
3 changes: 2 additions & 1 deletion pallets/identity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1103,11 +1103,12 @@ impl<T: Trait> Module<T> {
optional_cdd_auth_id: Option<u64>,
) -> DispatchResult {
let signer = Signatory::Account(sender.clone());
Self::accept_auth_with(&signer, rotation_auth_id, |data, _| {
Self::accept_auth_with(&signer, rotation_auth_id, |data, auth_by| {
let rotation_for_did = match data {
AuthorizationData::RotatePrimaryKey(r) => r,
_ => fail!(Error::<T>::UnknownAuthorization),
};
Self::ensure_auth_by(auth_by, rotation_for_did)?;
Self::unsafe_primary_key_rotation(sender, rotation_for_did, optional_cdd_auth_id)
})
}
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/develop/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 2022,
spec_version: 2023,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 7,
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/itn/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 2022,
spec_version: 2023,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 7,
Expand Down
2 changes: 1 addition & 1 deletion pallets/runtime/testnet/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to 0. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 2022,
spec_version: 2023,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 7,
Expand Down

0 comments on commit b95b9f8

Please sign in to comment.