Skip to content

Commit

Permalink
Merge pull request #22 from holaplex/mpw/solana-rpc-logs
Browse files Browse the repository at this point in the history
add logs to solana rpc calls
  • Loading branch information
mpwsh authored Jul 19, 2023
2 parents 52cd6b3 + eff123b commit 6d3f5ff
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions consumer/src/solana.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,17 @@ impl Solana {
message,
};

let signature = self.rpc().send_and_confirm_transaction(&transaction)?;

Ok(signature.to_string())
let signature = self
.rpc()
.send_and_confirm_transaction(&transaction)
.map(|s| s.to_string())
.map_err(|e| {
let msg = format!("failed to submit transaction: {e}");
error!(msg);
anyhow!(msg)
})?;

Ok(signature)
}

/// Res
Expand Down

0 comments on commit 6d3f5ff

Please sign in to comment.