Skip to content

Commit

Permalink
fix: signature option
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrxlz committed Sep 9, 2024
1 parent 61e1000 commit 56a734a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/kos-sdk/src/chains/tron/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,7 @@ impl TRX {

let binding = tx.clone();
let sig = binding.signature.first();
let signature = match sig {
Some(s) => Some(hex::encode(s)),
None => None,
};
let signature = sig.map(hex::encode);

Ok(Transaction {
chain: chain::Chain::TRX,
Expand Down

0 comments on commit 56a734a

Please sign in to comment.