Skip to content

Commit

Permalink
Merge pull request #73 from CosmWasm/add-burn-msg-to-cw721-package
Browse files Browse the repository at this point in the history
Add Burn message to cw721 package
  • Loading branch information
JakeHartnell authored Jul 23, 2022
2 parents a8dbfaf + a7b2a19 commit 342120f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/cw721/schema/cw721_execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,27 @@
}
},
"additionalProperties": false
},
{
"description": "Burn an NFT the sender has access to",
"type": "object",
"required": [
"burn"
],
"properties": {
"burn": {
"type": "object",
"required": [
"token_id"
],
"properties": {
"token_id": {
"type": "string"
}
}
}
},
"additionalProperties": false
}
],
"definitions": {
Expand Down
2 changes: 2 additions & 0 deletions packages/cw721/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ pub enum Cw721ExecuteMsg {
},
/// Remove previously granted ApproveAll permission
RevokeAll { operator: String },
/// Burn an NFT the sender has access to
Burn { token_id: String },
}

0 comments on commit 342120f

Please sign in to comment.