Skip to content

Commit

Permalink
minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
zajck committed Jun 6, 2023
1 parent 2218b9e commit f991c72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/protocol/facets/SellerHandlerFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,11 @@ contract SellerHandlerFacet is SellerBase {

// Create clone and store its address to additionalCollections
address voucherCloneAddress = cloneBosonVoucher(sellerId, collectionIndex, assistant, _voucherInitValues);
Collection memory newCollection;

// Store collection details
Collection storage newCollection = sellersAdditionalCollections.push();
newCollection.collectionAddress = voucherCloneAddress;
newCollection.externalId = _externalId;
sellersAdditionalCollections.push(newCollection);

emit CollectionCreated(sellerId, collectionIndex, voucherCloneAddress, _externalId, assistant);
}
Expand Down

0 comments on commit f991c72

Please sign in to comment.