Skip to content

Commit

Permalink
Run yarn lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Feb 29, 2024
1 parent 67fefc8 commit 1b9fdcf
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 10 deletions.
13 changes: 11 additions & 2 deletions background/services/chain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,17 @@ export default class ChainService extends BaseService<Events> {
transactionRequest: EnrichedLegacyTransactionRequest
gasEstimationError: string | undefined
}> {
const { from, to, value, gasLimit, input, gasPrice, nonce, annotation, broadcastOnSign } =
partialRequest
const {
from,
to,
value,
gasLimit,
input,
gasPrice,
nonce,
annotation,
broadcastOnSign,
} = partialRequest
// Basic transaction construction based on the provided options, with extra data from the chain service
const transactionRequest: EnrichedLegacyTransactionRequest = {
from,
Expand Down
12 changes: 10 additions & 2 deletions background/services/enrichment/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,18 @@ export type EnrichedEVMTransactionRequest =
| EnrichedLegacyTransactionRequest

type PartialEIP1559TransactionRequestWithFrom =
Partial<EIP1559TransactionRequest> & { from: string; network: EVMNetwork; broadcastOnSign: boolean }
Partial<EIP1559TransactionRequest> & {
from: string
network: EVMNetwork
broadcastOnSign: boolean
}

type PartialLegacyEVMTransactionRequestWithFrom =
Partial<LegacyEVMTransactionRequest> & { from: string; network: EVMNetwork; broadcastOnSign: boolean }
Partial<LegacyEVMTransactionRequest> & {
from: string
network: EVMNetwork
broadcastOnSign: boolean
}

export type PartialTransactionRequestWithFrom =
| PartialEIP1559TransactionRequestWithFrom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ export function TransferSummaryBase({
<div className="container">
<div className="label">{t("sendTo")}</div>
<div className="send_to">
<SharedAddress id="recipientAddress" address={recipientAddress} name={recipientName} />
<SharedAddress
id="recipientAddress"
address={recipientAddress}
name={recipientName}
/>
</div>
</div>
<div className="divider" />
Expand Down
7 changes: 6 additions & 1 deletion ui/components/Signing/Signer/SignerBaseFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ export default function SignerBaseFrame({
<>
<div className="signature-details">{children}</div>
<footer>
<TransactionButton id="reject" size="large" type="secondary" onClick={onReject}>
<TransactionButton
id="reject"
size="large"
type="secondary"
onClick={onReject}
>
{t("reject")}
</TransactionButton>

Expand Down
3 changes: 2 additions & 1 deletion ui/components/Signing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ function SigningLoaded<T extends SignOperationType>({
getAccountTotal(state, signingAddress),
)

const broadcastOnSign = "broadcastOnSign" in request && request.broadcastOnSign;
const broadcastOnSign =
"broadcastOnSign" in request && request.broadcastOnSign

return (
<section data-broadcast-on-sign={broadcastOnSign}>
Expand Down
14 changes: 12 additions & 2 deletions ui/pages/DAppConnect/DAppConnectPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,20 @@ export default function DAppConnectPage({
</ul>
</section>
<div className="footer_actions">
<SharedButton id="denyPermission" size="large" type="secondary" onClick={denyPermission}>
<SharedButton
id="denyPermission"
size="large"
type="secondary"
onClick={denyPermission}
>
{t("rejectConnection")}
</SharedButton>
<SharedButton id="grantPermission" type="primary" size="large" onClick={grantPermission}>
<SharedButton
id="grantPermission"
type="primary"
size="large"
onClick={grantPermission}
>
{t("acceptConnection")}
</SharedButton>
</div>
Expand Down
7 changes: 6 additions & 1 deletion ui/pages/NewCustomNetworkRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ export default function NewCustomNetworkRequest(): JSX.Element | null {
>
{t("addNewChain.cancel")}
</SharedButton>
<SharedButton id="addNewChain" size="large" type="primary" isFormSubmit>
<SharedButton
id="addNewChain"
size="large"
type="primary"
isFormSubmit
>
{t("addNewChain.submit")}
</SharedButton>
</>
Expand Down

0 comments on commit 1b9fdcf

Please sign in to comment.