Error occurred: contract creation code storage out of gas

I am trying to deploy a smart contract on the ethereum sepolia testnet in Remix IDE. But I’m getting the error “contract creation code storage out of gas”. I do not understand the reason for this, since I have enough testnet ETH in my wallet, and I have only imported the necessary libraries.
Here is the full code:

//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";

contract IssueCred is ERC20, AccessControl {
    bytes32 public constant DOCTOR_ROLE = keccak256("DOCTOR_ROLE");
    bytes32 public constant PHARMACIST_ROLE = keccak256("PHARMACIST_ROLE");
    bytes32 public constant GOVERNMENT_ROLE = keccak256("GOVERNMENT_ROLE");

    struct HealthCareProvider {
        string name;
        string licenseNumber;
        bool isVerified;
    }

    struct Prescription {
        address doctor;
        string drug;
        uint dosage;
        uint duration;
        uint timestamp;
    }

    mapping(address => HealthCareProvider) public providers;
    mapping(string => Prescription[]) private prescriptions;

    event ProviderRegistered(address indexed providerAddress, string name, string licenseNumber);
    event ProviderVerified(address indexed providerAddress);
    event PrescriptionIssued(address indexed doctor, string indexed patientID, string drug, uint dosage, uint duration);

    constructor() ERC20("AccountabilityToken", "PHARMA") {
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(GOVERNMENT_ROLE, msg.sender);
        _mint(msg.sender, 1000 * (10 ** decimals()));
    }

    function registerProvider(
        address providerAddress,
        string calldata name,
        string calldata licenseNumber,
        bytes32 role
    ) external onlyRole(GOVERNMENT_ROLE) {
        require(role == DOCTOR_ROLE || role == PHARMACIST_ROLE, "Invalid role");

        providers[providerAddress] = HealthCareProvider({
            name: name,
            licenseNumber: licenseNumber,
            isVerified: false
        });
        emit ProviderRegistered(providerAddress, name, licenseNumber);
    }

    function verifyProvider(address providerAddress, bytes32 role) external onlyRole(GOVERNMENT_ROLE) {
        require(providers[providerAddress].isVerified == false, "Provider already verified");

        providers[providerAddress].isVerified = true;
        _grantRole(role, providerAddress);
        emit ProviderVerified(providerAddress);
    }

    function isProviderVerified(address providerAddress) external view returns (bool) {
        return providers[providerAddress].isVerified;
    }

    function issuePrescription(
        string calldata patientID,
        string calldata drug,
        uint dosage,
        uint duration
    ) external onlyRole(DOCTOR_ROLE) {
        prescriptions[patientID].push(Prescription({
            doctor: msg.sender,
            drug: drug,
            dosage: dosage,
            duration: duration,
            timestamp: block.timestamp
        }));
        emit PrescriptionIssued(msg.sender, patientID, drug, dosage, duration);
    }

    function getPrescriptions(string calldata patientID) external view returns (Prescription[] memory) {
        return prescriptions[patientID];
    }
}

I searched online and found that increasing the gas limit would help my case but no such thing happened. Additionally, I tried optimizing the code by replacing the lists I had made for registered providers and verified providers with events. Can anyone please tell me if my code is optimized or not?

New contributor

remotestbeach is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật