Skip to content

Commit

Permalink
fix: typo name of broadcast failed error generator
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 31, 2021
1 parent 4872eb9 commit ae7e823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/aepp-wallet-communication/rpc/wallet-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const REQUESTS = {
const validationResult = await instance.unpackAndVerify(rawTx || tx)
if (validationResult.validation.length) return { error: ERRORS.invalidTransaction(validationResult) }
// Send broadcast failed error to aepp
return { error: ERRORS.broadcastFailde(e.message) }
return { error: ERRORS.broadcastFailed(e.message) }
}
throw e
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/aepp-wallet-communication/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const RPC_STATUS = {
}

export const ERRORS = {
broadcastFailde: (error = {}) => ({
broadcastFailed: (error = {}) => ({
code: 3,
data: error,
message: 'Broadcast failed'
Expand Down

0 comments on commit ae7e823

Please sign in to comment.