0

I am working Remix Browser for the following simple Contract. I had a couple of questions. I could not find the right answers.

  1. During Contract Creation: It gives the following error. What is this error. How can I get rid of it?

undefined errored: cannot read property 'op' of undefined

  1. I have an event defined. Where can I see the output of the event on Remix browser?

Compiler Results

    pragma solidity ^0.4.15;
    contract MyContract {

        bytes32  public custName;
        bytes32  public custLoc;
        address public docAddress = this;

        function MyContract () {

            custName = "0xDEFAULT";
            custLoc  = "0xDEFAULT";

        }

        event LogNewCust (address _address, bytes32 _custName, bytes32 _custLoc);

        function AssignAttributes (bytes32 _custName, bytes32 _custLoc)  
            returns (bool isSuccess) {

            custName    = _custName;
            custLoc     = _custLoc;

            LogNewCust(docAddress,custName,custLoc);

            return true;

        }

    }

1 Answer 1

0
  1. Seems to be some bug, the contract is deployable without a problem.
  2. When you make the event fire, you find it in the logs: enter image description here
1
  • Thanks for verifying the bug. I found the logs and it is working. Thanks.
    – userDSSR
    Sep 26, 2017 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.