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 win32 #4338

Closed
bradwbradw opened this issue Mar 29, 2022 · 0 comments · Fixed by #5341
Closed

System Error when running Ganache 2.5.4 on win32 #4338

bradwbradw opened this issue Mar 29, 2022 · 0 comments · Fixed by #5341

Comments

@bradwbradw
Copy link

From Metamask (connected to Ganache RPC) I sent GCS to a smart contract. The transaction failed, with "Out Of Gas" error. Then, I sent another transaction with a very large gas price. The transaction failed again, reverting

I went to the Transactions Tab in Ganache to see if i can see more error details, then clicked on the most recent failing transaction, and that's when this TypeError got thrown

Not sure if it's relevent, but this is the code for the smart contract I was sending to:

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

contract KingSolver {
    address payable public K;
    address payable public owner;

    constructor() public payable {
        owner = msg.sender;
    }

    function set_king(address k) public {
        K = payable(k);
    }

    receive() external payable {
        if (msg.sender != owner) {
            K.transfer(msg.value);
        }
    }
}

PLATFORM: win32
GANACHE VERSION: 2.5.4

EXCEPTION:

TypeError: Cannot read property 'stack' of undefined
    at IpcMainImpl.<anonymous> (C:\Program Files\WindowsApps\GanacheUI_2.5.4.0_x64__5dg5pnz03psnj\app\resources\app.asar\webpack:\src\integrations\ethereum\index.js:96:31)
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