Skip to content

Commit

Permalink
fix(core): Error stringify data
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanssen0 committed Feb 6, 2025
1 parent 1e88ad8 commit 20cc1a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/client/clientTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export class ErrorClientRBFRejected extends ErrorClientBase {

export class ErrorClientWaitTransactionTimeout extends ErrorClientBase {
constructor(timeoutLike: NumLike) {
const timeout = numFrom(timeoutLike);
const timeout = numFrom(timeoutLike).toString();
super({
message: `Wait transaction timeout ${timeout}ms`,
data: JSON.stringify({ timeout }),
Expand All @@ -404,10 +404,10 @@ export class ErrorClientWaitTransactionTimeout extends ErrorClientBase {

export class ErrorClientMaxFeeRateExceeded extends ErrorClientBase {
constructor(limitLike: NumLike, actualLike: NumLike) {
const limit = numFrom(limitLike);
const actual = numFrom(actualLike);
const limit = numFrom(limitLike).toString();
const actual = numFrom(actualLike).toString();
super({
message: `Max fee rate exceeded limit ${limit.toString()}, actual ${actual.toString()}. Developer might forgot to complete transaction fee before sending. See https://docs.ckbccc.com/classes/_ckb_ccc_core.index.ccc.Transaction.html#completeFeeBy.`,
message: `Max fee rate exceeded limit ${limit}, actual ${actual}. Developer might forgot to complete transaction fee before sending. See https://docs.ckbccc.com/classes/_ckb_ccc_core.index.ccc.Transaction.html#completeFeeBy.`,
data: JSON.stringify({ limit, actual }),
});
}
Expand Down

0 comments on commit 20cc1a6

Please sign in to comment.