File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,6 @@ pub enum RuntimeError {
184184 BadBlockHash ( Vec < u8 > ) ,
185185 /// Failed to unwrap an `Optional` (`none`) or `Response` (`err` or `ok`) Clarity value.
186186 UnwrapFailure ,
187- /// Attempt to set metadata (e.g., for NFTs or tokens) that was already initialized.
188- MetadataAlreadySet ,
189187 /// Interaction with a deprecated or inactive Proof of Transfer (PoX) contract.
190188 DefunctPoxContract ,
191189 /// Attempt to lock STX for stacking when already locked in an active PoX cycle.
Original file line number Diff line number Diff line change @@ -686,25 +686,6 @@ impl<'a> ClarityDatabase<'a> {
686686 . map_err ( |e| e. into ( ) )
687687 }
688688
689- /// Set a metadata entry if it hasn't already been set, yielding
690- /// a runtime error if it was. This should only be called by post-nakamoto
691- /// contexts.
692- pub fn try_set_metadata (
693- & mut self ,
694- contract_identifier : & QualifiedContractIdentifier ,
695- key : & str ,
696- data : & str ,
697- ) -> Result < ( ) , VmExecutionError > {
698- if self . store . has_metadata_entry ( contract_identifier, key) {
699- Err ( VmExecutionError :: Runtime (
700- RuntimeError :: MetadataAlreadySet ,
701- None ,
702- ) )
703- } else {
704- Ok ( self . store . insert_metadata ( contract_identifier, key, data) ?)
705- }
706- }
707-
708689 fn insert_metadata < T : ClaritySerializable > (
709690 & mut self ,
710691 contract_identifier : & QualifiedContractIdentifier ,
You can’t perform that action at this time.
0 commit comments