Skip to content

Commit

Permalink
chore(gsdk): present error logs for invalid transaction status
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Jul 20, 2023
1 parent fbf1247 commit e082761
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gsdk/src/signer/calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,15 @@ impl Signer {
b.extrinsic_hash()
),
TxStatus::Retracted(h) => log::warn!(" Status: Retracted( {h} )"),
TxStatus::FinalityTimeout(h) => log::warn!(" Status: FinalityTimeout( {h} )"),
TxStatus::FinalityTimeout(h) => log::error!(" Status: FinalityTimeout( {h} )"),
TxStatus::Finalized(b) => log::info!(
" Status: Finalized( block hash: {}, extrinsic hash: {} )",
b.block_hash(),
b.extrinsic_hash()
),
TxStatus::Usurped(h) => log::warn!(" Status: Usurped( {h} )"),
TxStatus::Dropped => log::warn!(" Status: Dropped"),
TxStatus::Invalid => log::warn!(" Status: Invalid"),
TxStatus::Usurped(h) => log::error!(" Status: Usurped( {h} )"),
TxStatus::Dropped => log::error!(" Status: Dropped"),
TxStatus::Invalid => log::error!(" Status: Invalid"),
}
}

Expand Down

0 comments on commit e082761

Please sign in to comment.