Add a method to return the inner value (IssueBundle) of IssueData wrapper
This commit is contained in:
parent
c6a3dd48d2
commit
c3a8583903
|
@ -27,6 +27,13 @@ use super::burn::ASSET_BASE_SIZE;
|
|||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub struct IssueData(IssueBundle<Signed>);
|
||||
|
||||
impl IssueData {
|
||||
/// Returns a reference to the inner `IssueBundle<Signed>`.
|
||||
pub fn inner(&self) -> &IssueBundle<Signed> {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl From<IssueBundle<Signed>> for IssueData {
|
||||
fn from(inner: IssueBundle<Signed>) -> Self {
|
||||
Self(inner)
|
||||
|
|
Loading…
Reference in New Issue