Skip to content

Commit

Permalink
Unlock RestrictedAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 24, 2023
1 parent 57db1b0 commit 6c1f4ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/src/types/block/address/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ impl Address {
return Err(TransactionFailureReason::InvalidInputUnlock);
}
}
(Self::Restricted(restricted_address), _) => {
return restricted_address.address().unlock(unlock, context);
}
_ => return Err(TransactionFailureReason::InvalidInputUnlock),
}

Expand Down

0 comments on commit 6c1f4ba

Please sign in to comment.