Skip to content

Commit d17330a

Browse files
committed
Update error handling
1 parent 3663a5d commit d17330a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/modules/select/wallets/ledger.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ async function ledgerProvider(options: {
244244

245245
return `0x${transaction.serialize().toString('hex')}`
246246
} catch (error) {
247-
console.log({ error })
248-
throw new Error('Error signing transaction')
247+
throw error
249248
} finally {
250249
transport.close()
251250
}

src/modules/select/wallets/trezor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ async function trezorProvider(options: {
252252
const transaction = new EthereumTx.Transaction(transactionData, {
253253
chain: networkName(networkId)
254254
})
255+
255256
const trezorResult = await trezorSignTransaction(path, transactionData)
256257

257258
if (!trezorResult.success) {

0 commit comments

Comments
 (0)