Skip to content

Commit

Permalink
Merge pull request #97 from xch-dev/meta_fix
Browse files Browse the repository at this point in the history
NFT Metadata Update Spend Fix
  • Loading branch information
Rigidity authored Oct 7, 2024
2 parents d09ae79 + 477d762 commit 1a609ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/chia-sdk-driver/src/primitives/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,16 @@ where
.update_nft_metadata(metadata_update.puzzle, metadata_update.solution),
)?;

let metadata_updater_solution = clvm_list!(
self.info.metadata.clone(),
self.info.metadata_updater_puzzle_hash,
metadata_update.solution
)
.to_clvm(&mut ctx.allocator)?;
let ptr = run_puzzle(
&mut ctx.allocator,
metadata_update.puzzle,
metadata_update.solution,
metadata_updater_solution,
)?;
let output = ctx.extract::<NewMetadataOutput<N, NodePtr>>(ptr)?;

Expand Down

0 comments on commit 1a609ec

Please sign in to comment.