Skip to content

Conversation

benma
Copy link
Contributor

@benma benma commented Sep 1, 2025

So refactorings related to BitBox02 keystore transactions are sure not to break payment requests.

This requires a simulator that is not yet released. Build it from latest bitbox02-firmware master and rename it to simulator-v9.24.0 (version in filename is required so the tests can infer the version)

Then run using

SIMULATOR=/path/to/bitbox02-firmware/build-build-noasan/bin/simulator-v9.24.0 go test -mod=vendor -tags=bitbox02_simulator ./... -count=1 -v -run 'TestSimulatorSignBTCPaymentRequest'

@benma benma requested review from Beerosagos and bznein and removed request for Beerosagos September 1, 2025 13:06
Copy link
Collaborator

@bznein bznein left a comment

Choose a reason for hiding this comment

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

utACK (I can't run the test on MacOS but I trust that you ran it :D)

One minor comment, feel free to ignore or if you address it feel free to merge right after :)

Comment on lines 804 to 816
`
BODY: Memo from

Test Merchant
CONFIRM SCREEN END
CONFIRM SCREEN START
TITLE: Memo 1/2
BODY: TextMemo line1
CONFIRM SCREEN END
CONFIRM SCREEN START
TITLE: Memo 2/2
BODY: TextMemo line2
CONFIRM SCREEN END`) &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know this is all gofmt doing but maybe we can extract it (and the one above) in a var so it becomes a bit easier to read the code?

Copy link
Collaborator

@bznein bznein left a comment

Choose a reason for hiding this comment

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

Why do I keep forgetting to actually approve :D

So refactorings related to BitBox02 keystore transactions are sure not
to break payment requests.
@benma benma force-pushed the test-paymentrequest branch from 17ab69c to 6a70b4f Compare September 3, 2025 13:22
@benma benma merged commit f1bfea5 into BitBoxSwiss:master Sep 3, 2025
10 checks passed
@benma benma deleted the test-paymentrequest branch September 3, 2025 13:32
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.

2 participants