Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stephankmin committed Oct 13, 2023
1 parent f979101 commit 73aeed8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib/ERC7498NFTRedeemables.sol
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ contract ERC7498NFTRedeemables is IERC7498, RedeemablesErrors {
) {
revert InvalidConsiderationTokenIdSupplied(c.token, id, c.identifierOrCriteria);
}

// If consideration item is this contract, recipient is burn address, and _useInternalBurn() fn returns true,
// call the internal burn function and return.
if (c.token == address(this) && c.recipient == payable(_BURN_ADDRESS) && _useInternalBurn()) {
Expand Down
8 changes: 4 additions & 4 deletions test/ERC721ShipyardRedeemable.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ contract TestERC721ShipyardRedeemable is BaseRedeemablesTest {
requirements[0] = CampaignRequirements({
offer: defaultCampaignOffer,
consideration: defaultCampaignConsideration,
traitRedemptions: new TraitRedemption[](0)
traitRedemptions: defaultTraitRedemptions
});

CampaignParams memory params = CampaignParams({
Expand Down Expand Up @@ -90,7 +90,7 @@ contract TestERC721ShipyardRedeemable is BaseRedeemablesTest {
requirements[0] = CampaignRequirements({
offer: defaultCampaignOffer,
consideration: defaultCampaignConsideration,
traitRedemptions: new TraitRedemption[](0)
traitRedemptions: defaultTraitRedemptions
});

CampaignParams memory params = CampaignParams({
Expand Down Expand Up @@ -576,7 +576,7 @@ contract TestERC721ShipyardRedeemable is BaseRedeemablesTest {
requirements[0] = CampaignRequirements({
offer: defaultCampaignOffer,
consideration: consideration,
traitRedemptions: new TraitRedemption[](0)
traitRedemptions: defaultTraitRedemptions
});

CampaignParams memory params = CampaignParams({
Expand Down Expand Up @@ -629,7 +629,7 @@ contract TestERC721ShipyardRedeemable is BaseRedeemablesTest {
requirements[0] = CampaignRequirements({
offer: defaultCampaignOffer,
consideration: consideration,
traitRedemptions: new TraitRedemption[](0)
traitRedemptions: defaultTraitRedemptions
});

CampaignParams memory params = CampaignParams({
Expand Down
1 change: 1 addition & 0 deletions test/utils/BaseRedeemablesTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ contract BaseRedeemablesTest is RedeemablesErrors, BaseOrderTest {

OfferItem[] defaultCampaignOffer;
ConsiderationItem[] defaultCampaignConsideration;
TraitRedemption[] defaultTraitRedemptions;
uint256[] defaultTraitRedemptionTokenIds = new uint256[](0);

CampaignRequirements[] defaultCampaignRequirements;
Expand Down

0 comments on commit 73aeed8

Please sign in to comment.