Skip to content

Commit

Permalink
Update faucet url (iotaledger#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Jun 29, 2022
1 parent ef85e8a commit 75b1f9e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 20 deletions.
7 changes: 2 additions & 5 deletions examples/03_get_funds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ async fn main() -> Result<()> {

let address = account.list_addresses().await?;

let faucet_response = request_funds_from_faucet(
"http://localhost:14265/api/plugins/faucet/v1/enqueue",
&address[0].address().to_bech32(),
)
.await?;
let faucet_response =
request_funds_from_faucet("http://localhost:8091/api/enqueue", &address[0].address().to_bech32()).await?;

println!("{}", faucet_response);

Expand Down
6 changes: 1 addition & 5 deletions examples/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ async fn main() -> Result<()> {

println!(
"{}",
request_funds_from_faucet(
"http://localhost:14265/api/plugins/faucet/v1/enqueue",
&addresses[0].address().to_bech32()
)
.await?
request_funds_from_faucet("http://localhost:8091/api/enqueue", &addresses[0].address().to_bech32()).await?
);
tokio::time::sleep(std::time::Duration::from_secs(15)).await;

Expand Down
6 changes: 1 addition & 5 deletions examples/ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ async fn main() -> Result<()> {
};
println!(
"{}",
request_funds_from_faucet(
"http://localhost:14265/api/plugins/faucet/v1/enqueue",
&addresses[0].address().to_bech32()
)
.await?
request_funds_from_faucet("http://localhost:8091/api/enqueue", &addresses[0].address().to_bech32()).await?
);
addresses
};
Expand Down
6 changes: 1 addition & 5 deletions examples/pong.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ async fn main() -> Result<()> {
};
println!(
"{}",
request_funds_from_faucet(
"http://localhost:14265/api/plugins/faucet/v1/enqueue",
&addresses[0].address().to_bech32()
)
.await?
request_funds_from_faucet("http://localhost:8091/api/enqueue", &addresses[0].address().to_bech32()).await?
);
addresses
};
Expand Down

0 comments on commit 75b1f9e

Please sign in to comment.