Skip to content

Commit b62c789

Browse files
committed
chore: make safeStringify static
Ticket: WP-6608
1 parent b81a5e5 commit b62c789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/sdk-core/src/bitgo/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ export class TxIntentMismatchError extends BitGoJsError {
285285
this.id = id;
286286
this.txParams = txParams;
287287
this.txHex = txHex;
288-
this.txExplanation = txExplanation ? this.safeStringify(txExplanation) : undefined;
288+
this.txExplanation = txExplanation ? TxIntentMismatchError.safeStringify(txExplanation) : undefined;
289289
}
290290

291291
/**
292292
* Safely stringify a value with BigInt support
293293
* @param value - Value to stringify
294294
* @returns JSON string with BigInts converted to strings
295295
*/
296-
private safeStringify(value: unknown): string {
296+
private static safeStringify(value: unknown): string {
297297
return JSON.stringify(value, (_, v) => (typeof v === 'bigint' ? v.toString() : v), 2);
298298
}
299299

0 commit comments

Comments
 (0)