Skip to content

Commit a7b2a19

Browse files
committed
Add Burn message to cw721 package, closes #71
1 parent d5eb42d commit a7b2a19

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

Diff for: packages/cw721/schema/cw721_execute_msg.json

+21
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,27 @@
167167
}
168168
},
169169
"additionalProperties": false
170+
},
171+
{
172+
"description": "Burn an NFT the sender has access to",
173+
"type": "object",
174+
"required": [
175+
"burn"
176+
],
177+
"properties": {
178+
"burn": {
179+
"type": "object",
180+
"required": [
181+
"token_id"
182+
],
183+
"properties": {
184+
"token_id": {
185+
"type": "string"
186+
}
187+
}
188+
}
189+
},
190+
"additionalProperties": false
170191
}
171192
],
172193
"definitions": {

Diff for: packages/cw721/src/msg.rs

+2
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ pub enum Cw721ExecuteMsg {
3333
},
3434
/// Remove previously granted ApproveAll permission
3535
RevokeAll { operator: String },
36+
/// Burn an NFT the sender has access to
37+
Burn { token_id: String },
3638
}

0 commit comments

Comments
 (0)