Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

'Source array was not long enough' during Sratis to Strax swap with Ledger Nano S #4227

@Schoekli

Description

@Schoekli

Use-Case

I tried to swap Stratis coins to Strax via 'Address Ownership Tool 1.2.0.0' (Win 64 Bit) from 'Ledger Nano S' (Firmware 2.0.0, Stratis app 1.6.0) to 'Strax Wallet' 1.2.0.

Steps to reproduce:

  1. I entered AddressOwnershipTool.exe -ledger -destination=XYDN... into CMD
    -> Scanning was successful and balance found. And message 'Please confirm transaction on your ledger device.' was shown in CMD.
  2. I confirmed signing message (4 pages) on Ledger Nano S
  3. Received exception in CMD
    Unhandled Exception: System.ArgumentException: Source array was not long enough. Check the source index, length, and the array's lower bounds. Parameter name: sourceArray at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length) at AddressOwnershipTool.LedgerService.GetSignature(String address, Byte[] resp, PubKey pubKey) in C:\release\3.0.8.0\src\AddressOwnershipTool\LedgerService.cs:line 161 at AddressOwnershipTool.LedgerService.ProcessAddressAsync(LedgerClient ledger, String keyPath, Boolean ignoreBalance, String destinationAddress) in C:\release\3.0.8.0\src\AddressOwnershipTool\LedgerService.cs:line 111 at AddressOwnershipTool.LedgerService.ExportAddressesAsync(Int32 numberOfAddressesToScan, String destinationAddress, Boolean ignoreBalance, String keyPath) in C:\release\3.0.8.0\src\AddressOwnershipTool\LedgerService.cs:line 50 at AddressOwnershipTool.Program.Main(String[] args) in C:\release\3.0.8.0\src\AddressOwnershipTool\Program.cs:line 137 at AddressOwnershipTool.Program.<Main>(String[] args)

I already checked in internet whether Ledger Nano S has some limitations/bugs here. But didn't find anything.

Is there a possibility to add a param to the command so that it is visible what source array is received?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions