Skip to content

Commit

Permalink
Don't use deprecated functions (iotaledger#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Feb 8, 2024
1 parent 133f911 commit 8b8750b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/src/wallet/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ mod test {

let pub_key_bytes = prefix_hex::decode(ED25519_PUBLIC_KEY).unwrap();
let sig_bytes = prefix_hex::decode(ED25519_SIGNATURE).unwrap();
let signature = Ed25519Signature::try_from_bytes(pub_key_bytes, sig_bytes).unwrap();
let signature = Ed25519Signature::from_bytes(pub_key_bytes, sig_bytes);
let sig_unlock = Unlock::from(SignatureUnlock::from(Signature::from(signature)));
let ref_unlock = Unlock::from(ReferenceUnlock::new(0).unwrap());
let unlocks = Unlocks::new([sig_unlock, ref_unlock]).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ fn build_invalid_payload_kind() {
// Construct a list of two unlocks, whereas we only have 1 tx input.
let pub_key_bytes: [u8; 32] = prefix_hex::decode(ED25519_PUBLIC_KEY).unwrap();
let sig_bytes: [u8; 64] = prefix_hex::decode(ED25519_SIGNATURE).unwrap();
let signature = Ed25519Signature::try_from_bytes(pub_key_bytes, sig_bytes).unwrap();
let signature = Ed25519Signature::from_bytes(pub_key_bytes, sig_bytes);
let sig_unlock = Unlock::from(SignatureUnlock::from(Signature::from(signature)));
let ref_unlock = Unlock::from(ReferenceUnlock::new(0).unwrap());
let unlocks = Unlocks::new([sig_unlock, ref_unlock]).unwrap();
Expand Down

0 comments on commit 8b8750b

Please sign in to comment.