This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tronwallet-adapter" ,
33 "description" : " wallet adapters for TRON blockchain" ,
4- "version" : " 1.1.2 " ,
4+ "version" : " 1.1.3 " ,
55 "main" : " index.js" ,
66 "sideEffects" : false ,
77 "private" : true ,
1616 "author" : " tronprotocol" ,
1717 "license" : " MIT" ,
1818 "scripts" : {
19- "nuke" : " shx rm -rf packages/*/*/node_modules demos/**/node_modules node_modules pnpm-lock.yaml || true" ,
19+ "nuke" : " shx rm -rf packages/*/*/node_modules demos/**/node_modules node_modules || true" ,
2020 "reinstall" : " pnpm run nuke && pnpm install" ,
2121 "clean" : " pnpm --recursive run clean && shx rm -rf **/*.tsbuildinfo" ,
2222 "ts" : " pnpm run build:ts" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @tronweb3/tronwallet-adapter-ledger" ,
3- "version" : " 1.1.2 " ,
3+ "version" : " 1.1.3 " ,
44 "description" : " Wallet adapter for the Ledger wallet." ,
55 "keywords" : [
66 " TRON" ,
Original file line number Diff line number Diff line change @@ -191,7 +191,16 @@ export class LedgerWallet {
191191 const index = this . selectedIndex ;
192192 const path = this . getPathForIndex ( index ) ;
193193 await this . makeApp ( ) ;
194- const signedResponse = await this . app ! . signTransaction ( path , transaction . raw_data_hex , [ ] ) ;
194+ let signedResponse ;
195+ try {
196+ signedResponse = await this . app ! . signTransaction ( path , transaction . raw_data_hex , [ ] ) ;
197+ } catch ( e : any ) {
198+ if ( / T o o m a n y b y t e s t o e n c o d e / . test ( e . message ) ) {
199+ signedResponse = await this . app ! . signTransactionHash ( path , transaction . txID ) ;
200+ } else {
201+ throw e ;
202+ }
203+ }
195204 if ( Array . isArray ( transaction . signature ) ) {
196205 if ( ! transaction . signature . includes ( signedResponse ) ) transaction . signature . push ( signedResponse ) ;
197206 } else {
You can’t perform that action at this time.
0 commit comments