Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying to use stellarSignTransaciton in Connect #4876

Closed
amovah opened this issue Dec 11, 2020 · 3 comments
Closed

Error while trying to use stellarSignTransaciton in Connect #4876

amovah opened this issue Dec 11, 2020 · 3 comments
Labels
bug Something isn't working as expected connect Connect API related (ie. fee calculation)

Comments

@amovah
Copy link

amovah commented Dec 11, 2020

How to reproduce:

  1. create an transaction consist of path payment strict send
  2. send to your trezor device to sign the transaction
  3. after pressing next couple times, it throws this error to your console or where ever you tried to log the error:
    in Firefox: o is undefined, in Chrome: Cannot read property 'type' of undefined
    image
    image
@prusnak
Copy link
Member

prusnak commented Dec 11, 2020

  • create an transaction consist of path payment strict send

How? Which tool do you use for that?

@amovah
Copy link
Author

amovah commented Dec 12, 2020

It's my code:

try {
    const account = await server.loadAccount('G...');
    const fee = await server.fetchBaseFee();

    let transaction = new StellarSDK.TransactionBuilder(account, {
      fee,
      networkPassphrase: StellarSDK.Networks.PUBLIC,
    });

    transaction = transaction
      .addOperation(
        StellarSDK.Operation.pathPaymentStrictSend({
          sendAsset: new StellarSDK.Asset.native(),
          sendAmount: '1',
          destination: 'G...', // a stellar address
          destAsset: new StellarSDK.Asset('MOBI', 'G....'),
          destMin: '2',
          path: [],
        })
      )
      .setTimeout(30)
      .build();

    const params = transformTrezorTransaction("m/44'/148'/0'", transaction);
    const signedFromTrezor = await TrezorConnect.stellarSignTransaction(params);
    console.log(signedFromTrezor);
} catch (e) {
  console.log(e);
}

When I run this code, I was redirected to trezor popup8 page, and after following instruction and pressing continue button for couple times, my trezor wallet stuck ( I mean I press continue or cancel but nothing happens ) at final step and popup8 page redirect me to my application and it throw an error which provided in first comment.

@amovah
Copy link
Author

amovah commented Feb 12, 2021

@prusnak hello again, are you able to reproduce the problem? is there any solution? I've updated my firmware and trezor-connect library to latest version.

@tsusanka tsusanka transferred this issue from trezor/connect Feb 4, 2022
@tsusanka tsusanka added code Code improvements connect Connect API related (ie. fee calculation) labels Feb 4, 2022
@tsusanka tsusanka changed the title Error while trying to use stellarSignTransaciton Error while trying to use stellarSignTransaciton in Connect Feb 4, 2022
@hynek-jina hynek-jina added bug Something isn't working as expected and removed code Code improvements labels Feb 11, 2022
@hynek-jina hynek-jina added the LOW label Feb 21, 2022
@hynek-jina hynek-jina removed the LOW label Jun 8, 2022
@sime sime closed this as completed May 12, 2023
@github-project-automation github-project-automation bot moved this to 🤝 Needs QA in Issues Suite May 12, 2023
@sime sime moved this from 🤝 Needs QA to ✅ Approved in Issues Suite May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected connect Connect API related (ie. fee calculation)
Projects
Archived in project
5 participants