Skip to content

Commit fe74897

Browse files
committed
fix: stacks-devnet-js build
1 parent 65bb291 commit fe74897

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ jobs:
227227
# run: sudo apt-get update && sudo apt-get install -y ${{ matrix.linker_package }}
228228

229229
- name: Build - Cargo
230-
run: cargo build --release --locked --target ${{ matrix.target }}
230+
run: cargo build --release --features=telemetry --locked --target ${{ matrix.target }}
231231
# To be uncommented later when adding new distros
232232
# env:
233233
# CC: ${{ matrix.cc }}

src/integrate/orchestrator.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,17 @@ impl DevnetOrchestrator {
198198
}
199199
}
200200

201+
#[allow(dead_code)]
202+
pub fn get_stacks_node_url(&self) -> String {
203+
match self.network_config {
204+
Some(ref config) => match config.devnet {
205+
Some(ref devnet) => format!("http://0.0.0.0:{}", devnet.stacks_node_rpc_port),
206+
_ => unreachable!(),
207+
},
208+
_ => unreachable!(),
209+
}
210+
}
211+
201212
pub async fn start(
202213
&mut self,
203214
event_tx: Sender<DevnetEvent>,

0 commit comments

Comments
 (0)