-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get full code coverage with new tests
- Loading branch information
1 parent
7f64252
commit 8a962e3
Showing
6 changed files
with
448 additions
and
171 deletions.
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
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,27 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.23; | ||
|
||
import {ERC1155} from "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | ||
import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol"; | ||
|
||
contract MockERC1155NoRoyalty is ERC1155 { | ||
uint64 public nextId = 1; | ||
|
||
constructor() ERC1155("") {} | ||
|
||
function mint(uint _quantity) external { | ||
_mint(_msgSender(), nextId++, _quantity, ""); | ||
} | ||
|
||
function mintSpecificId(uint _id, uint _quantity) external { | ||
_mint(_msgSender(), _id, _quantity, ""); | ||
} | ||
|
||
function mintBatch(uint[] memory _amounts) external { | ||
uint[] memory ids = new uint[](_amounts.length); | ||
for (uint i = 0; i < _amounts.length; ++i) { | ||
ids[i] = nextId++; | ||
} | ||
_mintBatch(_msgSender(), ids, _amounts, ""); | ||
} | ||
} |
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
Oops, something went wrong.