-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8a50f4
commit 0b19c45
Showing
3 changed files
with
573 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.16; | ||
|
||
import "./TestPlus.sol"; | ||
import { SoundCreatorV1 } from "@core/SoundCreatorV1.sol"; | ||
import { ISoundEditionV2_1, SoundEditionV2_1 } from "@core/SoundEditionV2_1.sol"; | ||
|
||
contract TestConfigV2_1 is TestPlus { | ||
uint256 internal _salt; | ||
|
||
SoundCreatorV1 soundCreator; | ||
|
||
function setUp() public virtual { | ||
soundCreator = new SoundCreatorV1(address(new SoundEditionV2_1())); | ||
} | ||
|
||
function createSoundEdition(ISoundEditionV2_1.EditionInitialization memory init) public returns (SoundEditionV2_1) { | ||
bytes memory initData = abi.encodeWithSelector(SoundEditionV2_1.initialize.selector, init); | ||
|
||
address[] memory contracts; | ||
bytes[] memory data; | ||
|
||
soundCreator.createSoundAndMints(bytes32(++_salt), initData, contracts, data); | ||
(address addr, ) = soundCreator.soundEditionAddress(address(this), bytes32(_salt)); | ||
return SoundEditionV2_1(addr); | ||
} | ||
|
||
function genericEditionInitialization() public view returns (ISoundEditionV2_1.EditionInitialization memory init) { | ||
init.fundingRecipient = address(this); | ||
init.tierCreations = new ISoundEditionV2_1.TierCreation[](1); | ||
} | ||
} |
Oops, something went wrong.