Skip to content

Commit

Permalink
make forc return receipts like before (FuelLabs#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
Voxelot authored Nov 5, 2021
1 parent 3e94062 commit f39e135
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions forc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fuel-asm = {git = "ssh://[email protected]/FuelLabs/fuel-asm.git"}
fuel-client = {git = "ssh://[email protected]/FuelLabs/fuel-core", default-features = false }
fuel-tx = {git = "ssh://[email protected]/FuelLabs/fuel-tx.git"}
fuel-vm = { git = "ssh://[email protected]/FuelLabs/fuel-vm.git" }
futures = "0.3"
hex = "0.4.3"
line-col = "0.2"
pest = {git = "https://github.com/sezna/pest.git", rev = "8aa58791f759daf4caee26e8560e862df5a6afb7"}
Expand Down
8 changes: 7 additions & 1 deletion forc/src/ops/forc_run.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use core_lang::parse;
use fuel_client::client::FuelClient;
use fuel_tx::Transaction;
use futures::TryFutureExt;
use std::io::{self, Write};
use std::path::PathBuf;
use tokio::process::Child;
Expand Down Expand Up @@ -138,7 +139,12 @@ async fn send_tx(
tx: &Transaction,
pretty_print: bool,
) -> Result<(), CliError> {
match client.submit(&tx).await {
let id = format!("{:#x}", tx.id());
match client
.submit(&tx)
.and_then(|_| client.receipts(id.as_str()))
.await
{
Ok(logs) => {
if pretty_print {
println!("{:#?}", logs);
Expand Down

0 comments on commit f39e135

Please sign in to comment.