Skip to content

Commit

Permalink
Merge pull request #75 from gregdhill/fix/refresh-nonce
Browse files Browse the repository at this point in the history
fix: refresh nonce after signing
  • Loading branch information
gregdhill authored Mar 25, 2021
2 parents 93ff50a + b823e23 commit 0adcd73
Show file tree
Hide file tree
Showing 2 changed files with 207 additions and 123 deletions.
6 changes: 6 additions & 0 deletions runtime/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ pub enum Error {
ChannelClosed,
#[error("Client has shutdown unexpectedly")]
ClientShutdown,
#[error("Transaction is outdated")]
OutdatedTransaction,

#[error("Failed to load credentials from file: {0}")]
KeyLoadingFailure(#[from] KeyLoadingError),
Expand Down Expand Up @@ -95,3 +97,7 @@ pub enum KeyLoadingError {
#[error("Invalid secret string: {0:?}")]
SecretStringError(SecretStringError),
}

// https://github.com/paritytech/substrate/blob/e60597dff0aa7ffad623be2cc6edd94c7dc51edd/client/rpc-api/src/author/error.rs#L80
const BASE_ERROR: i64 = 1000;
pub const POOL_INVALID_TX: i64 = BASE_ERROR + 10;
Loading

0 comments on commit 0adcd73

Please sign in to comment.