Skip to content

Commit 85f9e55

Browse files
committed
Fix on catalog factory, transfer ownership to deployer.
1 parent 67d5853 commit 85f9e55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contracts/implementations/catalog/RMRKCatalogFactory.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ contract RMRKCatalogFactory {
2626
) public returns (address) {
2727
RMRKCatalogImpl catalog = new RMRKCatalogImpl(metadataURI, type_);
2828
_deployerCatalogs[msg.sender].push(address(catalog));
29+
catalog.transferOwnership(msg.sender);
2930
emit CatalogDeployed(msg.sender, address(catalog));
3031
return address(catalog);
3132
}

test/implementations/catalogFactory.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ describe('CatalogImpl', async () => {
3232
throw new Error('Catalog address not found');
3333
}
3434
const catalog = await ethers.getContractAt('RMRKCatalogImpl', catalogAddress);
35-
const metadataURI = await catalog.getMetadataURI();
36-
const mediaType = await catalog.getType();
3735

38-
expect(metadataURI).to.equal('ipfs://catalogMetadata');
39-
expect(mediaType).to.equal('img/jpeg');
36+
expect(await catalog.getMetadataURI()).to.equal('ipfs://catalogMetadata');
37+
expect(await catalog.getType()).to.equal('img/jpeg');
38+
expect(await catalog.owner()).to.equal(deployer1.address);
4039
});
4140

4241
it('can get catalogs deployed by a deployer', async () => {

0 commit comments

Comments
 (0)