Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakuhito authored and Rigidity committed Oct 7, 2024
1 parent d09ae79 commit 477d762
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 477d762

Please sign in to comment.