Skip to content

Commit

Permalink
log for nft_decrease_series_copies
Browse files Browse the repository at this point in the history
  • Loading branch information
emarai committed Sep 2, 2021
1 parent 033b125 commit 27229aa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion paras-nft-contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,17 @@ impl Contract {
token_series.metadata.copies = Some(copies - decrease_copies.0);

self.token_series_by_id.insert(&token_series_id, &token_series);

env::log(
json!({
"type": "nft_decrease_series_copies",
"params": {
"token_series_id": token_series_id,
"copies": U64::from(token_series.metadata.copies.unwrap())
}
})
.to_string()
.as_bytes(),
);
U64::from(token_series.metadata.copies.unwrap())
}

Expand Down

0 comments on commit 27229aa

Please sign in to comment.