Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pablitovicente committed Mar 19, 2020
1 parent c84cd2d commit 0ee85cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion elements/lisk-transactions/src/utils/sign_and_validate.ts
Expand Up @@ -36,7 +36,7 @@ export const validateSignature = (
? new TransactionError(
`Failed to validate signature ${signature}`,
id,
'.signature',
'.signatures',
)
: undefined,
};
Expand Down
4 changes: 2 additions & 2 deletions elements/lisk-transactions/src/utils/verify.ts
Expand Up @@ -72,9 +72,9 @@ export const verifyAccountNonce = (

if (nonce > account.nonce) {
return new TransactionError(
`Higher transaction nonce for account: ${
`Transaction nonce for account: ${
account.address
}, Tx Nonce: ${nonce.toString()}, Account Nonce: ${account.nonce.toString()}`,
} is higher than expected, Tx Nonce: ${nonce.toString()}, Account Nonce: ${account.nonce.toString()}`,
id,
'.nonce',
nonce.toString(),
Expand Down
2 changes: 1 addition & 1 deletion elements/lisk-transactions/test/base_transaction.spec.ts
Expand Up @@ -549,7 +549,7 @@ describe('Base transaction class', () => {
TransactionError,
);
expect((errors as ReadonlyArray<TransactionError>)[0].message).toContain(
`Higher transaction nonce for account: ${senderAccount.address}, Tx Nonce: ${txNonce}, Account Nonce: ${accountNonce}`,
`Transaction nonce for account: ${senderAccount.address} is higher than expected, Tx Nonce: ${txNonce}, Account Nonce: ${accountNonce}`,
);
expect((errors as ReadonlyArray<TransactionError>)[0].actual).toEqual(
txNonce.toString(),
Expand Down

0 comments on commit 0ee85cc

Please sign in to comment.