Skip to content

Commit

Permalink
fix prettie
Browse files Browse the repository at this point in the history
  • Loading branch information
yuli-ferna committed Nov 27, 2024
1 parent 26a45c8 commit 96b1ac5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/config/transferRules.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
14 changes: 10 additions & 4 deletions src/hooks/useHandleTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
})
),
}));
Expand Down

0 comments on commit 96b1ac5

Please sign in to comment.