From 84fafcf7e4fe4c423be0a842e1ce49c4a04dd28e Mon Sep 17 00:00:00 2001 From: Campion Fellin Date: Mon, 30 Oct 2023 14:40:58 -0700 Subject: [PATCH] fix: save variations on-chain... Signed-off-by: Campion Fellin --- .../manifold/contracts/physicalclaim/PhysicalClaimLib.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/manifold/contracts/physicalclaim/PhysicalClaimLib.sol b/packages/manifold/contracts/physicalclaim/PhysicalClaimLib.sol index 1d7266c1..b2c65023 100644 --- a/packages/manifold/contracts/physicalclaim/PhysicalClaimLib.sol +++ b/packages/manifold/contracts/physicalclaim/PhysicalClaimLib.sol @@ -119,6 +119,11 @@ library PhysicalClaimLib { physicalClaimInstance.totalSupply = physicalClaimParameters.totalSupply; physicalClaimInstance.paymentReceiver = physicalClaimParameters.paymentReceiver; physicalClaimInstance.signer = physicalClaimParameters.signer; + + delete physicalClaimInstance.variations; + for (uint i = 0; i < physicalClaimParameters.variations.length; i++) { + physicalClaimInstance.variations.push(physicalClaimParameters.variations[i]); + } } /**