Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Failed when Deploying #25

Open
zubeirarhesta opened this issue Feb 5, 2023 · 0 comments
Open

Script Failed when Deploying #25

zubeirarhesta opened this issue Feb 5, 2023 · 0 comments

Comments

@zubeirarhesta
Copy link

zubeirarhesta commented Feb 5, 2023

Can someone help me with this?

I'm creating upgradeable contract using Chugsplash, and here is my chugsplash.json.

{
    "options": {
        "projectName": "Soonan Tsoor"
    },
    "contracts": {
        "Soonan Tsoor NFT": {
            "contract": "NFTContract",
            "variables": {
                "_tokenIdCounter": 0,
                "_listOfTokensOwnedBy": {},
                "ownerOfThis": {},
                "_treasuryWallet": "0x1111111111111111111111111111111111111111",
                "projectOwner": "0x1111111111111111111111111111111111111111",
                "tokenUris": [],
                "NAME": "SoonanTsoor",
                "SYMBOL": "SNSR",
                "base": "https://nft.soonantsoor.com"
            }
        },
        "Soonan Tsoor ERC20": {
            "contract": "FractionToken",
            "variables": {
                "tfEth": "0x1111111111111111111111111111111111111111",
                "NFTAddress": "0x1111111111111111111111111111111111111111",
                "NFTId": 0,
                "NFTOwner": "0x1111111111111111111111111111111111111111",
                "RoyaltyPercentage": 0,
                "supply": 0,
                "_soldToken": 0,
                "tokenPrice": 0,
                "tokenOwners": [],
                "_treasuryWallet": "0x1111111111111111111111111111111111111111",
                "projectOwner": "0x1111111111111111111111111111111111111111",
                "contractDeployer": "0x1111111111111111111111111111111111111111",
                "isHolding": {},
                "ownerOf": {},
                "supplyOf": {},
                "maxSupplyOf": {},
                "_balances": {}
            }
        },
        "Transfer Contract": {
            "contract": "TransferEth"
        },
        "Fractionalizer Contract": {
            "contract": "FractionalizeNFT",
            "variables": {
                "AccessDeposits": {},
                "NftIndex": {},
                "DepositFolder": {
                    "Deposit": []
                },
                "DepositInfo": {
                    "owner": "0x1111111111111111111111111111111111111111",
                    "nftContractAddress": "0x1111111111111111111111111111111111111111",
                    "depositTimestamp": 0,
                    "fractionContractAddress": "0x1111111111111111111111111111111111111111",
                    "supply": 0,
                    "hasFractionalized": true
                }
            }
        },
        "Staking Contract": {
            "contract": "StakeSoonanTsoor",
            "variables": {
                "snsrToken": "0x1111111111111111111111111111111111111111",
                "planDuration": 2592000,
                "_planExpired": 15552000,
                "interestRate": 32,
                "planExpired": 0,
                "totalStakers": 0,
                "StakeInfo": {
                    "startTS": 0,
                    "endTS": 0,
                    "amount": 0,
                    "claimed": 0
                },
                "stakeInfos": {},
                "addressStaked": {}
            }
        }
    }
}

and here is the error:

2023-02-05T06:59:54.586990Z ERROR foundry_evm::executor::inspector::cheatcodes::ext: stderr err="TypeError: Cannot read properties of undefined (reading 'types')

Have I done it wrong? I my self was not really sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant