Skip to content

Commit

Permalink
Derive Clone for PairSigner (paritytech#184)
Browse files Browse the repository at this point in the history
* Derive `Clone` for `PairSigner`

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

* Specify the date of nightly toolchain to fix CI

Signed-off-by: koushiro <koushiro.cqx@gmail.com>
  • Loading branch information
koushiro committed Oct 20, 2020
1 parent fc2da6b commit 7655caa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:

- name: setup
run: |
rustup install nightly --profile default
rustup +nightly target add wasm32-unknown-unknown
rustup install nightly-2020-10-01 --profile default
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-10-01
- name: fmt
run: cargo +nightly fmt --all -- --check
run: cargo +nightly-2020-10-01 fmt --all -- --check

- name: build
run: cargo build --workspace --verbose
run: cargo +nightly-2020-10-01 build --workspace --verbose

- name: test
run: cargo test --workspace --verbose -- --test-threads=1
run: cargo +nightly-2020-10-01 test --workspace --verbose -- --test-threads=1
2 changes: 1 addition & 1 deletion src/extrinsic/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub trait Signer<T: Runtime> {
}

/// Extrinsic signer using a private key.
#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct PairSigner<T: Runtime, P: Pair> {
account_id: T::AccountId,
nonce: Option<T::Index>,
Expand Down

0 comments on commit 7655caa

Please sign in to comment.