Skip to content

Commit

Permalink
[Rust SDK] Fix Rust coin transfer example
Browse files Browse the repository at this point in the history
  • Loading branch information
jjleng committed Oct 15, 2022
1 parent 6118373 commit b0d3425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crates/aptos-rest-client/src/faucet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ impl FaucetClient {
let response = self
.inner
.post(url)
.header("content-length", 0)
.send()
.await
.map_err(FaucetClientError::request)?;
Expand Down Expand Up @@ -84,6 +85,7 @@ impl FaucetClient {
let response = self
.inner
.post(url)
.header("content-length", 0)
.send()
.await
.map_err(FaucetClientError::request)?;
Expand Down
2 changes: 1 addition & 1 deletion sdk/examples/transfer-coin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async fn main() -> Result<()> {
// Create the accounts on chain, but only fund Alice.
// :!:>section_3
faucet_client
.fund(alice.address(), 600_000)
.fund(alice.address(), 100_000_000)
.await
.context("Failed to fund Alice's account")?;
faucet_client
Expand Down

0 comments on commit b0d3425

Please sign in to comment.