Skip to content

Commit 6065996

Browse files
committed
Update docs tests
1 parent 7306abd commit 6065996

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

crates/sncast/tests/docs_snippets/ledger.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::e2e::ledger::{automation, setup_speculos};
1+
use crate::e2e::ledger::{automation, set_automation, setup_speculos};
22
use crate::helpers::constants::URL;
33
use crate::helpers::runner::runner;
44
use docs::snippet::SnippetType;
@@ -14,18 +14,16 @@ const DOCS_SNIPPETS_PORT_BASE: u16 = 4006;
1414

1515
async fn setup_speculos_automation(client: &Arc<speculos_client::SpeculosClient>, args: &[&str]) {
1616
if args.contains(&"get-public-key") && !args.contains(&"--no-display") {
17-
client
18-
.automation(&[automation::APPROVE_PUBLIC_KEY])
19-
.await
20-
.unwrap();
17+
set_automation(client, &[automation::APPROVE_PUBLIC_KEY]).await;
2118
} else if args.contains(&"sign-hash") {
22-
client
23-
.automation(&[
19+
set_automation(
20+
client,
21+
&[
2422
automation::ENABLE_BLIND_SIGN,
2523
automation::APPROVE_BLIND_SIGN_HASH,
26-
])
27-
.await
28-
.unwrap();
24+
],
25+
)
26+
.await;
2927
}
3028
}
3129

docs/src/appendix/sncast/ledger/app-version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ sncast ledger app-version
1515
<summary>Output:</summary>
1616

1717
```shell
18-
App Version: 2.3.4
18+
App Version: 2.4.0
1919
```
2020
</details>
2121
<br>

docs/src/starknet/ledger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Prerequisites
66

7-
`sncast` communicates with the [Starknet Ledger app](https://github.com/LedgerHQ/app-starknet) running on your device (currently supported version: 2.3.4). Make sure the Starknet app is installed and open before running any `sncast ledger` commands.
7+
`sncast` communicates with the [Starknet Ledger app](https://github.com/LedgerHQ/app-starknet) running on your device (currently supported version: 2.4.0). Make sure the Starknet app is installed and open before running any `sncast ledger` commands.
88

99
> 📝 **Note**
1010
>
@@ -29,7 +29,7 @@ $ sncast ledger app-version
2929
<summary>Output:</summary>
3030

3131
```shell
32-
App Version: 2.3.4
32+
App Version: 2.4.0
3333
```
3434
</details>
3535
<br>

0 commit comments

Comments
 (0)