Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Jun 28, 2024
1 parent dcd7691 commit a94091b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/chains/suave/parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ export function assertTransactionSuave(
s,
v,
} = transaction
if (type === SuaveTxRequestTypes.ConfidentialRequest && isEIP712 === undefined) throw new Error("must encode 'isEIP712' for confidential requests")
if (
type === SuaveTxRequestTypes.ConfidentialRequest &&
isEIP712 === undefined
)
throw new Error("must encode 'isEIP712' for confidential requests")
if (chainId && chainId <= 0) throw new Error('invalid chain ID')
if (to && !isAddress(to)) throw new Error('invalid to address')
if (!gasPrice) throw new Error('gasPrice is required')
Expand Down
2 changes: 1 addition & 1 deletion src/chains/suave/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function newSuaveWallet<TTransport extends Transport>(params: {
},
async signTransaction(
txRequest: TransactionRequestSuave,
): Promise<`${SuaveTxType|TransactionType}${string}`> {
): Promise<`${SuaveTxType | TransactionType}${string}`> {
if (
txRequest.type === SuaveTxRequestTypes.ConfidentialRequest ||
txRequest.kettleAddress ||
Expand Down

0 comments on commit a94091b

Please sign in to comment.