From 477d7622ca5550675a8c1cacb397e3820b3e2d44 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 d9a154ed..6bc0aae1 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)?;