Skip to content

Commit 3663a5d

Browse files
committed
Add error log
1 parent 57c1c8f commit 3663a5d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/modules/select/wallets/ledger.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,9 @@ async function ledgerProvider(options: {
229229
chain: networkName(networkId)
230230
})
231231

232-
transaction.raw[6] = Buffer.from([networkId]) // v
233-
transaction.raw[7] = Buffer.from([]) // r
234-
transaction.raw[8] = Buffer.from([]) // s
232+
transaction.raw[6] = buffer.Buffer.from([networkId]) // v
233+
transaction.raw[7] = buffer.Buffer.from([]) // r
234+
transaction.raw[8] = buffer.Buffer.from([]) // s
235235

236236
const ledgerResult = await eth.signTransaction(
237237
path,
@@ -244,6 +244,7 @@ async function ledgerProvider(options: {
244244

245245
return `0x${transaction.serialize().toString('hex')}`
246246
} catch (error) {
247+
console.log({ error })
247248
throw new Error('Error signing transaction')
248249
} finally {
249250
transport.close()

0 commit comments

Comments
 (0)