From 96b1ac53b9fda70ea52cfa1d1f07173c44ac58c8 Mon Sep 17 00:00:00 2001 From: yuli-ferna Date: Wed, 27 Nov 2024 12:07:58 -0300 Subject: [PATCH] fix prettie --- src/config/transferRules.ts | 5 +---- src/hooks/useHandleTransfer.tsx | 14 ++++++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/config/transferRules.ts b/src/config/transferRules.ts index f02f021c3..fc5ce5a8f 100644 --- a/src/config/transferRules.ts +++ b/src/config/transferRules.ts @@ -1,7 +1,4 @@ -import { - CHAIN_ID_BSC, - CHAIN_ID_ETH, -} from "@certusone/wormhole-sdk"; +import { CHAIN_ID_BSC, CHAIN_ID_ETH } from "@certusone/wormhole-sdk"; // import { terra } from "@certusone/wormhole-sdk"; import { Rule, PredicateArgs } from "../hooks/useWarningRulesEngine"; diff --git a/src/hooks/useHandleTransfer.tsx b/src/hooks/useHandleTransfer.tsx index 8859e96fc..55a2a83fc 100644 --- a/src/hooks/useHandleTransfer.tsx +++ b/src/hooks/useHandleTransfer.tsx @@ -807,9 +807,9 @@ async function terra( /** * if raw tx logs are not present, add them to the tx object - * @param tx + * @param tx * @returns tx with raw logs - * + * * Note: applied the fix here, since wormhole sdk has been deprecated */ function addInjectiveRawLogsToTx(tx: TxResponse): TxResponse { @@ -820,8 +820,14 @@ function addInjectiveRawLogsToTx(tx: TxResponse): TxResponse { type: event.type, attributes: event.attributes.map( (attr: { key: Uint8Array; value: Uint8Array }) => ({ - key: attr.key instanceof Uint8Array ? decoder.decode(attr.key) : attr.key, - value: attr.value instanceof Uint8Array ? decoder.decode(attr.value) : attr.value, + key: + attr.key instanceof Uint8Array + ? decoder.decode(attr.key) + : attr.key, + value: + attr.value instanceof Uint8Array + ? decoder.decode(attr.value) + : attr.value, }) ), }));