From f70e765f2406cbc137b108593a6ba3bdba2c2c2d Mon Sep 17 00:00:00 2001 From: Yak Date: Fri, 4 Oct 2024 18:42:53 -0300 Subject: [PATCH] patch --- crates/chia-sdk-driver/src/primitives/nft.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/chia-sdk-driver/src/primitives/nft.rs b/crates/chia-sdk-driver/src/primitives/nft.rs index d3fc2dc4..80b05d46 100644 --- a/crates/chia-sdk-driver/src/primitives/nft.rs +++ b/crates/chia-sdk-driver/src/primitives/nft.rs @@ -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::>(ptr)?;