From a7b2a1901218e4e0ae706b82fcd1964084fe8578 Mon Sep 17 00:00:00 2001 From: Jake Hartnell Date: Fri, 22 Jul 2022 16:36:05 -0700 Subject: [PATCH] Add Burn message to cw721 package, closes #71 --- packages/cw721/schema/cw721_execute_msg.json | 21 ++++++++++++++++++++ packages/cw721/src/msg.rs | 2 ++ 2 files changed, 23 insertions(+) diff --git a/packages/cw721/schema/cw721_execute_msg.json b/packages/cw721/schema/cw721_execute_msg.json index ccb3fa8c5..b02851cc2 100644 --- a/packages/cw721/schema/cw721_execute_msg.json +++ b/packages/cw721/schema/cw721_execute_msg.json @@ -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": { diff --git a/packages/cw721/src/msg.rs b/packages/cw721/src/msg.rs index c7175be90..63e24703e 100644 --- a/packages/cw721/src/msg.rs +++ b/packages/cw721/src/msg.rs @@ -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 }, }