From d4221c2bf907f745fa1fbdf79daadafc17cc362e Mon Sep 17 00:00:00 2001 From: tonititi Date: Fri, 12 Apr 2024 12:17:17 +0700 Subject: [PATCH] GREEN-25 add run prettier --- src/api.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/api.ts b/src/api.ts index ebeaa861..e336db38 100755 --- a/src/api.ts +++ b/src/api.ts @@ -98,11 +98,11 @@ export type DetailedTxStatus = { from: string injected: boolean accepted: - | TxStatusCode.BAD_TX - | TxStatusCode.SUCCESS - | TxStatusCode.BUSY - | TxStatusCode.OTHER_FAILURE - | boolean + | TxStatusCode.BAD_TX + | TxStatusCode.SUCCESS + | TxStatusCode.BUSY + | TxStatusCode.OTHER_FAILURE + | boolean reason: string timestamp: string nodeUrl?: string @@ -172,16 +172,16 @@ type Tx = readableTransaction & { type TxParam = | { - readableReceipt: Tx - txHash?: string - transactionType?: string | number - } - | { - wrappedEVMAccount: { readableReceipt: Tx - txHash: string + txHash?: string + transactionType?: string | number + } + | { + wrappedEVMAccount: { + readableReceipt: Tx + txHash: string + } } - } function extractTransactionObject( bigTransaction: TxParam, @@ -2707,7 +2707,7 @@ export const methods = { countFailedResponse(api_name, 'Invalid address') return } - // Add validate topics + // Add validate topics if (!checkValidHexTopics(topics)) { logEventEmitter.emit('fn_end', ticket, { success: false }, performance.now()) callback({ code: -32000, message: 'Invalid topics' }, null)