Skip to content

Commit

Permalink
Update apps/src/lib/client/tendermint_rpc_types.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tomas Zemanovic <tomas@heliax.dev>
  • Loading branch information
sug0 and tzemanovic authored Nov 2, 2022
1 parent 4c286a0 commit 7072027
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/src/lib/client/tendermint_rpc_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ impl TryFrom<Event> for TxResponse {
.map(String::as_str)
// TODO: fix finalize block, to return initialized accounts,
// even when we reject a tx?
.or(Some("[]"))
// NOTE: at this point we only have `Some(vec)`, not `None`
.ok_or_else(|| unreachable!())
.and_then(|initialized_accounts| {
.map_or(Ok(vec![]), |initialized_accounts| {
serde_json::from_str(initialized_accounts)
.map_err(|err| format!("JSON decode error: {err}"))
})?;
Expand Down

0 comments on commit 7072027

Please sign in to comment.