Skip to content

Commit 5632f77

Browse files
committed
chore: add step to switch to the latest release tag before building the mithril-client library
1 parent a3f6e78 commit 5632f77

File tree

6 files changed

+29
-5
lines changed

6 files changed

+29
-5
lines changed

examples/client-cardano-stake-distribution/README.md

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

55
This example shows how to implement a Mithril client and use the features related to the `Cardano stake distribution` type.
66

7-
In this example, the client interacts by default with a real aggregator on the network `testing-preview` to:
7+
In this example, the client interacts by default with a real aggregator on the network `release-preprod` to:
88

99
- list the available Cardano stake distributions
1010
- get a single Cardano stake distribution
@@ -17,6 +17,9 @@ The crates [`slog`](https://docs.rs/slog/latest/slog/) and [`slog_term`](https:/
1717
## Build and run the example
1818

1919
```bash
20+
# Switch to the latest release tag
21+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
22+
2023
# Build from the crate directory
2124
cargo build
2225

examples/client-cardano-transaction/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ In this example, the client interacts with an aggregator and performs the follow
1919
## Build and run the example
2020

2121
```bash
22+
# Switch to the latest release tag
23+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
24+
2225
# Build from the crate directory
2326
cargo build
2427

examples/client-mithril-stake-distribution/README.md

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

55
This example shows how to implement a Mithril client and use the features related to the `Mithril stake distribution` type.
66

7-
In this example, the client interacts by default with a real aggregator on the network `testing-preview` to:
7+
In this example, the client interacts by default with a real aggregator on the network `release-preprod` to:
88

99
- list the available Mithril stake distributions
1010
- get a single Mithril stake distribution
@@ -17,6 +17,9 @@ The crates [`slog`](https://docs.rs/slog/latest/slog/) and [`slog_term`](https:/
1717
## Build and run the example
1818

1919
```bash
20+
# Switch to the latest release tag
21+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
22+
2023
# Build from the crate directory
2124
cargo build
2225

examples/client-snapshot/README.md

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

55
This example shows how to implement a Mithril client and use its features related to the `Snapshot` type.
66

7-
In this example, the client interacts by default with a real aggregator on the network `testing-preview` to:
7+
In this example, the client interacts by default with a real aggregator on the network `release-preprod` to:
88

99
- list the available snapshots
1010
- get a single snapshot
@@ -19,6 +19,9 @@ The crate [indicatif](https://docs.rs/indicatif/latest/indicatif/) is used to ni
1919
## Build and run the example
2020

2121
```bash
22+
# Switch to the latest release tag
23+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
24+
2225
# Build from the crate directory
2326
cargo build
2427

examples/client-wasm-nodejs/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ In this example, the client interacts by default with a real aggregator on the n
2020

2121
## Build and run the example
2222

23-
First you need to compile the Mithril client Wasm library:
23+
First you need to switch to the latest release tag:
24+
25+
```bash
26+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
27+
```
28+
29+
Compile the Mithril client Wasm library:
2430

2531
```bash
2632
make -C ../../mithril-client-wasm build

examples/client-wasm-web/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ In this example, the client interacts by default with a real aggregator on the n
2020

2121
## Build and run the example
2222

23-
First you need to compile the Mithril client Wasm library:
23+
First you need to switch to the latest release tag:
24+
25+
```bash
26+
git checkout tags/$(curl -sSL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name')
27+
```
28+
29+
Compile the Mithril client Wasm library:
2430

2531
```bash
2632
make -C ../../mithril-client-wasm build

0 commit comments

Comments
 (0)