Skip to content

Commit

Permalink
fix: update tendermint-rs rev in Cargo.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
benluelo committed Sep 1, 2023
1 parent f42a64c commit 4725575
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 106 deletions.
112 changes: 10 additions & 102 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions voyager/src/chain/cosmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl<C: ChainSpec> CreateClient<Ethereum<C>> for Union {
let client_id = self
.broadcast_tx_commit([msg])
.await
.deliver_tx
.tx_result
.events
.into_iter()
.find(|event| event.kind == "create_client")
Expand Down Expand Up @@ -260,13 +260,13 @@ impl Union {
.unwrap();

tracing::info!(check_tx_code = ?response.check_tx.code, check_tx_log = %response.check_tx.log);
tracing::info!(deliver_tx_code = ?response.deliver_tx.code, deliver_tx_log = %response.deliver_tx.log);
tracing::info!(deliver_tx_code = ?response.tx_result.code, deliver_tx_log = %response.tx_result.log);

if let tendermint::abci::Code::Err(code) = response.check_tx.code {
panic!("check_tx failed: {code}")
};

if let tendermint::abci::Code::Err(code) = response.deliver_tx.code {
if let tendermint::abci::Code::Err(code) = response.tx_result.code {
panic!("deliver_tx failed: {code}")
};

Expand Down Expand Up @@ -1056,7 +1056,7 @@ impl<C: ChainSpec> Ethereum<C> {
.map(|response| {
(
self.chain.make_height(response.height.value()),
get_event_from_tx_response(response.deliver_tx.events).unwrap(),
get_event_from_tx_response(response.tx_result.events).unwrap(),
)
})
.await
Expand Down

0 comments on commit 4725575

Please sign in to comment.