File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @spcfxda/devkit" ,
3- "version" : " 0.2.9 " ,
3+ "version" : " 0.2.10 " ,
44 "exports" : {
55 "." : " ./mod.ts"
66 },
Original file line number Diff line number Diff line change 88 Chain ,
99 createPublicClient ,
1010 createWalletClient ,
11+ formatCFX ,
1112 http ,
1213 parseCFX ,
13- formatCFX ,
1414 PublicClient ,
1515 WalletClient ,
1616} from 'cive'
@@ -197,16 +197,28 @@ export class coreClient {
197197 const tx = await this . public . getTransaction ( { hash : txHash } )
198198 onNewTransaction ( tx as Transaction )
199199 } catch ( error : unknown ) {
200- console . error ( `Failed to get transaction ${ txHash } : ${ error instanceof Error ? error . message : String ( error ) } ` )
200+ console . error (
201+ `Failed to get transaction ${ txHash } : ${
202+ error instanceof Error ? error . message : String ( error )
203+ } `,
204+ )
201205 }
202206 } ) ,
203207 )
204208 } catch ( error : unknown ) {
205- console . error ( `Failed to process block ${ hash } : ${ error instanceof Error ? error . message : String ( error ) } ` )
209+ console . error (
210+ `Failed to process block ${ hash } : ${
211+ error instanceof Error ? error . message : String ( error )
212+ } `,
213+ )
206214 }
207215 }
208216 } catch ( error : unknown ) {
209- console . error ( `Failed to get blocks for epoch ${ epochNumber } : ${ error instanceof Error ? error . message : String ( error ) } ` )
217+ console . error (
218+ `Failed to get blocks for epoch ${ epochNumber } : ${
219+ error instanceof Error ? error . message : String ( error )
220+ } `,
221+ )
210222 }
211223 } ,
212224 } )
Original file line number Diff line number Diff line change @@ -150,12 +150,20 @@ export class espaceClient {
150150 const tx = await this . public . getTransaction ( { hash : element } )
151151 onNewTransaction ( tx )
152152 } catch ( error : unknown ) {
153- console . error ( `Failed to get transaction ${ element } : ${ error instanceof Error ? error . message : String ( error ) } ` )
153+ console . error (
154+ `Failed to get transaction ${ element } : ${
155+ error instanceof Error ? error . message : String ( error )
156+ } `,
157+ )
154158 }
155159 } ) ,
156160 )
157161 } catch ( error : unknown ) {
158- console . error ( `Failed to process block ${ block . number } : ${ error instanceof Error ? error . message : String ( error ) } ` )
162+ console . error (
163+ `Failed to process block ${ block . number } : ${
164+ error instanceof Error ? error . message : String ( error )
165+ } `,
166+ )
159167 }
160168 } ,
161169 } )
@@ -218,7 +226,7 @@ export class espaceClient {
218226 try {
219227 await this . public . waitForTransactionReceipt ( { hash } )
220228 } catch ( error : unknown ) {
221- throw new Error ( `Failed to wait for transaction: ${ error instanceof Error ? error . message : String ( error ) } ` )
229+ throw new Error ( `Failed to wait for transaction: ${ error instanceof Error ? error . message : String ( error ) } ` )
222230 }
223231 }
224232
You can’t perform that action at this time.
0 commit comments