Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.

refactor Plug to use the new versioned Doughnut enum type #40

Closed
wants to merge 5 commits into from

Conversation

mzxyz
Copy link
Contributor

@mzxyz mzxyz commented Dec 22, 2019

  • refactor Plug to use the new versioned Doughnut enum type
  • creating and tagging a new release branch for doughnut-rs and bump new version 0.3.0

Updated the original issue, need more time to solve this one

Closes #37

prml/doughnut/src/impls.rs Outdated Show resolved Hide resolved
prml/doughnut/src/impls.rs Outdated Show resolved Hide resolved
prml/doughnut/src/impls.rs Outdated Show resolved Hide resolved
@@ -12,7 +12,7 @@ use rstd::prelude::*;
use primitives::OpaqueMetadata;
use sp_runtime::{
ApplyExtrinsicResult, transaction_validity::TransactionValidity, generic, create_runtime_str,
impl_opaque_keys, MultiSignature, DoughnutV0
impl_opaque_keys, MultiSignature, Doughnut
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you can remove Doughnut from this line

@@ -258,6 +262,8 @@ mod tests {
domains: vec![("test".to_string(), vec![0u8])],
};
doughnut.signature = issuer.sign(&doughnut.payload()).into();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doughnut_v0.signature = issuer.sign(&doughnut_v0.payload()).into();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Plug with Versioned Doughnut
3 participants