pallas-addresses: pub fn new on StakeAddress
This commit is contained in:
parent
57b36d3a7c
commit
51a0d0bd77
1 changed files with 5 additions and 0 deletions
|
|
@ -545,6 +545,11 @@ impl AsRef<[u8]> for StakePayload {
|
|||
}
|
||||
|
||||
impl StakeAddress {
|
||||
/// Construct a stake (reward) address from a network + payload.
|
||||
pub fn new(network: Network, payload: StakePayload) -> Self {
|
||||
Self(network, payload)
|
||||
}
|
||||
|
||||
/// Gets the network assoaciated with this address
|
||||
pub fn network(&self) -> Network {
|
||||
self.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue