Skip to content

Commit 20cc1a6

Browse files
committed
fix(core): Error stringify data
1 parent 1e88ad8 commit 20cc1a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/client/clientTypes.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export class ErrorClientRBFRejected extends ErrorClientBase {
394394

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

405405
export class ErrorClientMaxFeeRateExceeded extends ErrorClientBase {
406406
constructor(limitLike: NumLike, actualLike: NumLike) {
407-
const limit = numFrom(limitLike);
408-
const actual = numFrom(actualLike);
407+
const limit = numFrom(limitLike).toString();
408+
const actual = numFrom(actualLike).toString();
409409
super({
410-
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.`,
410+
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.`,
411411
data: JSON.stringify({ limit, actual }),
412412
});
413413
}

0 commit comments

Comments
 (0)