Skip to content

Commit 5cb1b63

Browse files
authored
Remove a stray apostrophe from NotEnoughFunds message (#5514)
1 parent e722119 commit 5cb1b63

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ironfish/src/rpc/routes/wallet/createTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ routes.register<typeof CreateTransactionRequestSchema, CreateTransactionResponse
236236
assetData,
237237
)
238238
const renderedAmount = CurrencyUtils.render(e.amount, false, e.assetId, assetData)
239-
const message = `Insufficient funds: Needed ${renderedAmountNeeded} but have ${renderedAmount} available to spend. Please fund your account and/or wait for any pending transactions to be confirmed.'`
239+
const message = `Insufficient funds: Needed ${renderedAmountNeeded} but have ${renderedAmount} available to spend. Please fund your account and/or wait for any pending transactions to be confirmed.`
240240
throw new RpcValidationError(message, 400, RPC_ERROR_CODES.INSUFFICIENT_BALANCE)
241241
}
242242
throw e

ironfish/src/rpc/routes/wallet/sendTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ routes.register<typeof SendTransactionRequestSchema, SendTransactionResponse>(
174174
assetData,
175175
)
176176
const renderedAmount = CurrencyUtils.render(e.amount, false, e.assetId, assetData)
177-
const message = `Insufficient funds: Needed ${renderedAmountNeeded} but have ${renderedAmount} available to spend. Please fund your account and/or wait for any pending transactions to be confirmed.'`
177+
const message = `Insufficient funds: Needed ${renderedAmountNeeded} but have ${renderedAmount} available to spend. Please fund your account and/or wait for any pending transactions to be confirmed.`
178178
throw new RpcValidationError(message, 400, RPC_ERROR_CODES.INSUFFICIENT_BALANCE)
179179
}
180180
throw e

ironfish/src/wallet/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class NotEnoughFundsError extends Error {
1919

2020
const renderedAmountNeeded = CurrencyUtils.render(amountNeeded, true, this.assetId)
2121
const renderedAmount = CurrencyUtils.render(amount)
22-
this.message = `Insufficient funds: Needed ${renderedAmountNeeded} but have ${renderedAmount} available to spend. Please fund your account and/or wait for any pending transactions to be confirmed.'`
22+
this.message = `Insufficient funds: Needed ${renderedAmountNeeded} but have ${renderedAmount} available to spend. Please fund your account and/or wait for any pending transactions to be confirmed.`
2323
}
2424
}
2525

0 commit comments

Comments
 (0)