Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
panieldark committed Nov 10, 2023
1 parent 1536d8f commit b153b83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/utils/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const makeFinalContent = (
...item.messages.map((m) => {
const safeText = m.replace(NEWLINE_AND_CARRIAGE_RETURN_REGEX, ""); // Strip newlines and carriage returns to avoid injected malicious formatting
return text(safeText);
})
}),
];
});
return panel(formattedItems);
Expand All @@ -50,7 +50,7 @@ export const makeSignCanonAddrRegistryEntryContent = (
const messages = [
`Registering your canonical address gives your Ethereum account an address with which you
receive private payments.`,
`Your connected Ethereum address: **${entry.ethAddress}**`
`Your connected Ethereum address: **${entry.ethAddress}**`,
];

return makeFinalContent([{ heading, messages }]);
Expand All @@ -67,7 +67,7 @@ export const makeSignOperationContent = (
NEWLINE_AND_CARRIAGE_RETURN_REGEX,
""
),
messages: []
messages: [],
};

const actionItems = opMetadata.items.map((item) => {
Expand All @@ -84,7 +84,7 @@ export const makeSignOperationContent = (
const {
amount: amountSmallestUnits,
recipientAddress,
erc20Address
erc20Address,
} = item;
const ticker = lookupTickerByAddress(erc20Address, erc20s);
const displayAmount = formatUnits(amountSmallestUnits);
Expand Down Expand Up @@ -117,7 +117,7 @@ export const makeSignOperationContent = (
tokenOut,
maxSlippageBps,
exactQuoteWei,
minimumAmountOutWei
minimumAmountOutWei,
} = item;
const tickerIn = lookupTickerByAddress(tokenIn, erc20s);
const tickerOut = lookupTickerByAddress(tokenOut, erc20s);
Expand Down Expand Up @@ -158,7 +158,7 @@ export const makeSignOperationContent = (
heading,
messages: messages.map(
(m) => m.replace(NEWLINE_AND_CARRIAGE_RETURN_REGEX, "") // Strip newlines and carriage returns
)
),
};
});

Expand Down Expand Up @@ -186,7 +186,7 @@ export const makeSignOperationContent = (
heading: gasItemHeader,
messages: gasItemMessages.map((m) =>
m.replace(NEWLINE_AND_CARRIAGE_RETURN_REGEX, "")
)
),
};

return makeFinalContent([headItem, ...actionItems, gasItem]);
Expand Down
2 changes: 1 addition & 1 deletion src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {

export const UndefinedType = define(
"Undefined",
(value) => value === undefined,
(value) => value === undefined
);

const isDataHexString32 = (value: any) =>
Expand Down

0 comments on commit b153b83

Please sign in to comment.