Skip to content

Commit

Permalink
Add Burn message to cw721 package, closes #71
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell committed Jul 22, 2022
1 parent d5eb42d commit a7b2a19
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 a7b2a19

Please sign in to comment.