Skip to content

Commit a632986

Browse files
authored
feat: Optimize receive address handling for hardware wallets (#3394)
1 parent 857e08f commit a632986

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/neuron-wallet/src/services/tx/transaction-generator.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ export class TransactionGenerator {
268268
tx.addOutput(output)
269269
}
270270

271-
tx.outputs = ArrayUtils.shuffle(tx.outputs)
271+
const wallet = WalletService.getInstance().getCurrent()
272+
if (!wallet?.isHardware()) {
273+
tx.outputs = ArrayUtils.shuffle(tx.outputs)
274+
}
272275
tx.outputsData = tx.outputs.map(output => output.data || '0x')
273276
tx.hash = tx.computeHash()
274277

0 commit comments

Comments
 (0)