Skip to content

Commit

Permalink
fix: save variations on-chain...
Browse files Browse the repository at this point in the history
Signed-off-by: Campion Fellin <[email protected]>
  • Loading branch information
campionfellin committed Oct 30, 2023
1 parent eb1cb64 commit 84fafcf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

/**
Expand Down

0 comments on commit 84fafcf

Please sign in to comment.