Skip to content

Commit add54c8

Browse files
committed
elip100: add missing AssetMetadata::new method
1 parent a19e347 commit add54c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pset/elip100.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ fn prop_key(asset_id: &AssetId) -> ProprietaryKey {
7676
}
7777

7878
impl AssetMetadata {
79+
80+
/// Create a new [`AssetMetadata`]
81+
pub fn new(contract: String, issuance_prevout: OutPoint) -> Self {
82+
Self { contract, issuance_prevout }
83+
}
84+
7985
/// Returns the contract as string containing a json
8086
pub fn contract(&self) -> &str {
8187
&self.contract

0 commit comments

Comments
 (0)