Skip to content

hardware wallet misc fixes - #685

Merged
acharb merged 5 commits into
release/2.9.0from
acharb-ledger-recaccounts
Nov 30, 2022
Merged

acharb merged 5 commits into
release/2.9.0from
acharb-ledger-recaccounts

Conversation

@acharb

@acharb acharb commented Nov 29, 2022 •

Copy link
Copy Markdown
Contributor

misc bug fixes / changes related to hardware wallets. Pointed out in the comments

</div>
<div className="LedgerSign__bottom">
<LedgerErrorBlock error={connectError} />
{isDetectBtnDirty && <LedgerErrorBlock error={connectError} />}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hide the connect error before user clicks "detect"

https://stellarorg.atlassian.net/browse/WAL-388

submitFreighterTransaction.fulfilled.match(submitResp) &&
!isSwap
) {
dispatch(addRecentAddress({ publicKey: destination }));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

save recent address for hardware wallet successful send
https://stellarorg.atlassian.net/browse/WAL-385

case LEDGER_ERROR.NOT_OPEN:
errorMessage = t(
"Please open the Stellar app on the device and try again.",
"Connect device to computer and open the Stellar app on it.",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions

Copy link
Copy Markdown
Contributor

networkDetails,
if (isHardwareWallet) {
await dispatch(startHwSign({ transactionXDR, shouldSubmit: true }));
emitMetric(METRIC_NAMES.manageAssetAddUnsafeAsset, { code, issuer });

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ran into this bug, where adding the trustline when the NewAssetWarning popup comes up w/ hardware wallet would throw error
(I fixed this in this PR for the ScamAssetWarning popup, forgot to change here as well)

@@ -20,9 +20,7 @@ import { settingsNetworkDetailsSelector } from "popup/ducks/settings";

export const Swap = () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other misc bug found. When loading the swap page w/ no trustlines it gets caught in a useEffect loop.

I had fixed this before in #549, but looks like somewhere around the 2.3 merge conflict release it got added back 😬 . Hopefully with the new branch process we're doing won't be an issue!

@acharb
acharb merged commit a47b431 into release/2.9.0 Nov 30, 2022
@acharb
acharb deleted the acharb-ledger-recaccounts branch November 30, 2022 02:02
piyalbasu added a commit that referenced this pull request Dec 10, 2022
* add swap button if asset balance 0 (#678)

* show swap button if no balance

* Add translations

Co-authored-by: GitHub Action <action@github.com>

* when recovering account pre load first couple accounts if funded (#679)

* pre load first couple of accounts if funded

* use _activatePublicKey

* update key derivation num after recovering account (#683)

* add integration tests (#684)

* hold

* added all tests with todos

* clean up

* cleanup

* clean up

* cleanup

* dont run test if background not build w/ experimental mode

* cleanup

* hardware wallet misc fixes (#685)

* add recent address for ledger

* fix no trustlines swap

* hide ledger connect error on first load

* Add translations

Co-authored-by: GitHub Action <action@github.com>

Co-authored-by: Alec Charbonneau <aleccharb21@gmail.com>
Co-authored-by: GitHub Action <action@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants