Skip to content

Commit

Permalink
fix: error unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrxlz committed Sep 3, 2024
1 parent fc279d1 commit 2eac885
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/kos-sdk/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ impl Transaction {
Chain::ETH => ETH::tx_from_json(data).unwrap(),
Chain::MATIC => todo!(),
Chain::BTC => todo!(),
Chain::NONE => Err(Error::InvalidTransaction("Invalid chain".to_string())).unwrap(),
Chain::NONE => panic!(
"{:?}",
Error::InvalidTransaction("Invalid chain".to_string())
),
}
}
}
Expand Down

0 comments on commit 2eac885

Please sign in to comment.