@@ -317,11 +317,8 @@ export class ClientService {
317317 constructedAddress : string ,
318318 ) : Promise < { unsignedTx : TxBuilder ; clientId : bigint } > {
319319 const handlerUtxo : UTxO = await this . lucidService . findUtxoAtHandlerAuthToken ( ) ;
320-
321- this . logger . log ( 'handlerUtxo: ' + this . prettyPrint ( handlerUtxo ) , "buildUnsignedCreateClientTx" ) ;
322320 // Decode the handler datum from the handler UTXO
323321 const handlerDatum : HandlerDatum = await this . lucidService . decodeDatum < HandlerDatum > ( handlerUtxo . datum ! , 'handler' ) ;
324- this . logger . log ( 'handlerDatum: ' + this . prettyPrint ( handlerDatum ) , "buildUnsignedCreateClientTx" ) ;
325322 // Create an updated handler datum with an incremented client sequence
326323 const updatedHandlerDatum : HandlerDatum = {
327324 ...handlerDatum ,
@@ -390,41 +387,4 @@ export class ClientService {
390387 } ,
391388 } ;
392389 }
393-
394- private prettyPrint ( obj : any , indent = 2 ) : string {
395- const seen = new WeakSet ( ) ;
396-
397- function replacer ( key : string , value : any ) : any {
398- // Handle circular references
399- if ( typeof value === 'object' && value !== null ) {
400- if ( seen . has ( value ) ) {
401- return '[Circular Reference]' ;
402- }
403- seen . add ( value ) ;
404- }
405-
406- // Handle Map objects
407- if ( value instanceof Map ) {
408- const mapEntries : Record < string , any > = { } ;
409- value . forEach ( ( v , k ) => {
410- mapEntries [ String ( k ) ] = v ;
411- } ) ;
412- return { __type : 'Map' , entries : mapEntries } ;
413- }
414-
415- // Handle BigInt values
416- if ( typeof value === 'bigint' ) {
417- return { __type : 'BigInt' , value : value . toString ( ) } ;
418- }
419-
420- // Handle other special types as needed
421- // ...
422-
423- return value ;
424- }
425-
426- return JSON . stringify ( obj , replacer , indent ) ;
427- }
428-
429-
430390}
0 commit comments