Skip to content

Commit

Permalink
fix: disable multisend for ledger temporary until tonapi fix send batch
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Jan 6, 2025
1 parent 7fbaac8 commit b12990a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export class LedgerMessageSender implements ISender {
tx: T
): Promise<T extends LedgerTransaction ? Cell : Cell[]> {
if (Array.isArray(tx)) {
if (tx.length > 1) {
throw new Error('Only one transaction is supported by Ledger'); // TODO disable multisend for ledger temporary until tonapi fix send batch
}
return this.signer(tx) as Promise<T extends LedgerTransaction ? Cell : Cell[]>;
} else {
const res = await this.signer([tx]);
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/service/tonConnect/connectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ export const tonDisconnectRequest = async (options: { storage: IStorage; webView

const getMaxMessages = (account: Account) => {
if (account.type === 'ledger') {
return 1; // TODO disable multisend for ledger temporary until tonapi fix send batch

return 4;
}

Expand Down

0 comments on commit b12990a

Please sign in to comment.