diff --git a/apps/contracts/contracts/DeepLink.sol b/apps/contracts/contracts/DeepLink.sol index 834a02144..5ca84eab0 100644 --- a/apps/contracts/contracts/DeepLink.sol +++ b/apps/contracts/contracts/DeepLink.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.9; +pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; @@ -8,7 +8,7 @@ import "./abstracts/Linkable.sol"; /// @custom:security-contact vadim@sovereignnature.com contract DeepLink is ERC721, ERC721Burnable, Ownable, Linkable { - constructor() ERC721("DeepLink", "DLK") {} + constructor(address initialOwner) ERC721("DeepLink", "DLK") Ownable(initialOwner) {} function _baseURI() internal pure override returns (string memory) { return "https://link.sovereignnature.com/api/"; diff --git a/apps/contracts/contracts/DeepLink1155.sol b/apps/contracts/contracts/DeepLink1155.sol index a52454a4d..bdeaf4ea1 100644 --- a/apps/contracts/contracts/DeepLink1155.sol +++ b/apps/contracts/contracts/DeepLink1155.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity ^0.8.9; +pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; @@ -8,7 +8,7 @@ import "./abstracts/Linkable.sol"; /// @custom:security-contact vadim@sovereignnature.com contract DeepLink1155 is ERC1155, Ownable, ERC1155Burnable, Linkable { - constructor() ERC1155("https://link.sovereignnature.com/api/") {} + constructor(address initialOwner) ERC1155("https://link.sovereignnature.com/api/") Ownable(initialOwner) {} function setURI(string memory newuri) public onlyOwner { _setURI(newuri); diff --git a/apps/contracts/hardhat.config.ts b/apps/contracts/hardhat.config.ts index 761d141a8..40809ff70 100644 --- a/apps/contracts/hardhat.config.ts +++ b/apps/contracts/hardhat.config.ts @@ -8,7 +8,7 @@ import 'solidity-coverage'; dotenv.config(); const config: HardhatUserConfig = { - solidity: '0.8.9', + solidity: '0.8.20', networks: { // Moonbase Alpha network specification moonbase: { diff --git a/apps/contracts/package.json b/apps/contracts/package.json index eb9fc6aea..f798e47ac 100644 --- a/apps/contracts/package.json +++ b/apps/contracts/package.json @@ -17,7 +17,7 @@ }, "devDependencies": { "@nomicfoundation/hardhat-toolbox": "3.0.0", - "@openzeppelin/contracts": "4.9.3", + "@openzeppelin/contracts": "5.0.0", "@sni/constants": "workspace:*", "@web-std/fetch": "4.2.1", "axios": "1.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a3413f50b..6d43fae53 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,8 +54,8 @@ importers: specifier: 3.0.0 version: 3.0.0(@nomicfoundation/hardhat-chai-matchers@2.0.1)(@nomicfoundation/hardhat-ethers@3.0.4)(@nomicfoundation/hardhat-network-helpers@1.0.8)(@nomicfoundation/hardhat-verify@1.1.0)(@typechain/ethers-v6@0.4.3)(@typechain/hardhat@8.0.3)(@types/chai@4.3.5)(@types/mocha@10.0.1)(@types/node@18.17.1)(chai@4.3.10)(ethers@6.7.1)(hardhat-gas-reporter@1.0.9)(hardhat@2.18.0)(solidity-coverage@0.8.5)(ts-node@10.9.1)(typechain@8.3.1)(typescript@5.2.2) '@openzeppelin/contracts': - specifier: 4.9.3 - version: 4.9.3 + specifier: 5.0.0 + version: 5.0.0 '@sni/constants': specifier: workspace:* version: link:../../packages/constants @@ -3713,8 +3713,8 @@ packages: url-join: 4.0.1 dev: false - /@openzeppelin/contracts@4.9.3: - resolution: {integrity: sha512-He3LieZ1pP2TNt5JbkPA4PNT9WC3gOTOlDcFGJW4Le4QKqwmiNJCRt44APfxMxvq7OugU/cqYuPcSBzOw38DAg==} + /@openzeppelin/contracts@5.0.0: + resolution: {integrity: sha512-bv2sdS6LKqVVMLI5+zqnNrNU/CA+6z6CmwFXm/MzmOPBRSO5reEJN7z0Gbzvs0/bv/MZZXNklubpwy3v2+azsw==} dev: true /@peculiar/asn1-schema@2.3.6: