Skip to content

Commit 673d800

Browse files
committed
Merge #183: elip100: add missing AssetMetadata::new method
add54c8 elip100: add missing AssetMetadata::new method (Riccardo Casatta) Pull request description: Missing from #182 otherwise there is no way to instantiate `AssetMetadata` and call `add_asset_metadata` ACKs for top commit: apoelstra: ACK add54c8 Tree-SHA512: 1a5e935aa76a0f288d8ac1c0917ccf441991f32b830bab26c9b1146a3d462bfeac1caad1c3035f2f54669731bef779ea72d2cd27ff9d65b90c38f0253e4274b1
2 parents a19e347 + add54c8 commit 673d800

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)