@@ -2,7 +2,7 @@ import { expect } from "chai";
22import { ethers } from "hardhat" ;
33import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers" ;
44import {
5- ImmutableERC721HybridPermissionedMintable ,
5+ ImmutableERC721 ,
66 MockMarketplace ,
77 MockFactory ,
88 RoyaltyAllowlist ,
@@ -17,7 +17,7 @@ import {
1717} from "../utils/DeployHybridFixtures" ;
1818
1919describe ( "Royalty Checks with Hybrid ERC721" , function ( ) {
20- let erc721 : ImmutableERC721HybridPermissionedMintable ;
20+ let erc721 : ImmutableERC721 ;
2121 let walletFactory : MockWalletFactory ;
2222 let factory : MockFactory ;
2323 let royaltyAllowlist : RoyaltyAllowlist ;
@@ -56,9 +56,7 @@ describe("Royalty Checks with Hybrid ERC721", function () {
5656
5757 it ( "Should not allow contracts that do not implement the IRoyaltyAllowlist to be set" , async function ( ) {
5858 // Deploy another contract that implements IERC165, but not IRoyaltyAllowlist
59- const factory = await ethers . getContractFactory (
60- "ImmutableERC721HybridPermissionedMintable"
61- ) ;
59+ const factory = await ethers . getContractFactory ( "ImmutableERC721" ) ;
6260 const erc721Two = await factory . deploy (
6361 owner . address ,
6462 "" ,
@@ -206,7 +204,7 @@ describe("Royalty Checks with Hybrid ERC721", function () {
206204 } ) ;
207205
208206 it ( "Should block transfers to a not allow listed address" , async function ( ) {
209- await erc721 . connect ( minter ) . mintByID ( minter . address , 1 ) ;
207+ await erc721 . connect ( minter ) . mint ( minter . address , 1 ) ;
210208 await expect (
211209 erc721
212210 . connect ( minter )
@@ -220,7 +218,7 @@ describe("Royalty Checks with Hybrid ERC721", function () {
220218 await royaltyAllowlist
221219 . connect ( registrar )
222220 . addAddressToAllowlist ( [ marketPlace . address ] ) ;
223- await erc721 . connect ( minter ) . mintByID ( minter . address , 4 ) ;
221+ await erc721 . connect ( minter ) . mint ( minter . address , 4 ) ;
224222 await erc721 . connect ( minter ) . setApprovalForAll ( marketPlace . address , true ) ;
225223 expect ( await erc721 . balanceOf ( accs [ 3 ] . address ) ) . to . be . equal ( 0 ) ;
226224 await marketPlace . connect ( minter ) . executeTransfer ( accs [ 3 ] . address , 4 ) ;
@@ -250,8 +248,8 @@ describe("Royalty Checks with Hybrid ERC721", function () {
250248 saltThree
251249 ) ;
252250 // Mint NFTs to the wallets
253- await erc721 . connect ( minter ) . mintByID ( deployedAddr , 10 ) ;
254- await erc721 . connect ( minter ) . mintByID ( deployedAddrTwo , 11 ) ;
251+ await erc721 . connect ( minter ) . mint ( deployedAddr , 10 ) ;
252+ await erc721 . connect ( minter ) . mint ( deployedAddrTwo , 11 ) ;
255253
256254 // Connect to wallets
257255 const wallet = await ethers . getContractAt ( "MockWallet" , deployedAddr ) ;
@@ -315,7 +313,7 @@ describe("Royalty Checks with Hybrid ERC721", function () {
315313 const { deployedAddr, salt, constructorByteCode } =
316314 await disguidedEOAFixture ( erc721 . address , factory , "0x1234" ) ;
317315 // Approve disguised EOA
318- await erc721 . connect ( minter ) . mintByID ( minter . address , 1 ) ;
316+ await erc721 . connect ( minter ) . mint ( minter . address , 1 ) ;
319317 await erc721 . connect ( minter ) . setApprovalForAll ( deployedAddr , true ) ;
320318 // Deploy disguised EOA
321319 await factory . connect ( accs [ 5 ] ) . deploy ( salt , constructorByteCode ) ;
@@ -350,7 +348,7 @@ describe("Royalty Checks with Hybrid ERC721", function () {
350348 accs [ 6 ] . address
351349 ) ;
352350 // Mint and transfer to receiver contract
353- await erc721 . connect ( minter ) . mintByID ( minter . address , 1 ) ;
351+ await erc721 . connect ( minter ) . mint ( minter . address , 1 ) ;
354352 // Fails as transfer 'to' is now allowlisted
355353 await expect (
356354 erc721
0 commit comments