Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

System Error when running Ganache 2.5.4 on darwin #4521

Closed
MADEiN83 opened this issue Apr 22, 2022 · 0 comments · Fixed by #5332
Closed

System Error when running Ganache 2.5.4 on darwin #4521

MADEiN83 opened this issue Apr 22, 2022 · 0 comments · Fixed by #5332

Comments

@MADEiN83
Copy link

Had this error with the following contract when I called the create method from my frontend.
This error occurs when I wanted to open my contract from the Contracts tab.

This only appears when players array is not empty.

Contracts tab:
Screenshot 2022-04-22 at 11 45 31

Empty players array:
Screenshot 2022-04-22 at 11 46 17

// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

contract Player {
    PlayerStruct[] private players;

    struct PlayerStruct {
        string name;
        uint256 life;
        uint256 strength;
    }

    event PlayerCreated(address indexed _from, PlayerStruct player);

    function create(
        string memory name,
        uint256 life,
        uint256 strength
    ) public {
        PlayerStruct memory newPlayer = PlayerStruct(name, life, strength);
        players.push(newPlayer);

        emit PlayerCreated(msg.sender, newPlayer);
    }
}

PLATFORM: darwin
GANACHE VERSION: 2.5.4

EXCEPTION:

TypeError: Cannot read property 'stack' of undefined
    at IpcMainImpl.<anonymous> (/webpack:/src/integrations/ethereum/index.js:76:29)
@davidmurdoch davidmurdoch transferred this issue from trufflesuite/ganache Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant