I don't know why I'm getting this error while deploying 2 of my contracts.

creation of Hourglass errored: transaction execution failed

while code compiles successfully no issues there. Duringdebugging TX it highlights on pragma solidity ^0.4.23 which means it is not going next to this statement. and in console i get this error: creation of Hourglass errored: transaction execution failed.


pragma solidity ^0.4.23

contract Hourglass {

    mapping(address => bool) public administrators;

    =            PUBLIC FUNCTIONS            =
    constructor() public    {
        // add administrators here
        administrators[msg.sender] = true;
  • Your code is a missing ;, but fixed that it work as expected. Without more details how to reproduce your problem we can say nothing about why it is failing for you. – Ismael Aug 10 '18 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.