CRYPTO NEWS

how to uninstall mist permanently for Mac

my mist is not syncing in private network and it did not show the ethers. so I need to uninstall Mist permanently and again I want to install .But when I install the mist it shows the older mist .

How to set variable of contract from another contract constructor? Solidity [duplicate]

I have a contract // SPDX-License-Identifier: MIT pragma solidity ^ 0.8.15; contract MomContract { bool public failed =false; constructor(){ new Son(address(this)); } function SetFailed(bool _failed) public{ failed=_failed; } } contract Son{ constructor(address _mom){ MomContract mom=MomContract(_mom); mom.SetFailed(true); } } When I try to deploy it with remix, it fails with revert The transaction has been reverted::Listen

I have a contract

// SPDX-License-Identifier: MIT  pragma solidity ^ 0.8.15;  contract MomContract {     bool public failed =false;     constructor(){         new Son(address(this));      }     function SetFailed(bool _failed) public{         failed=_failed;     }   } contract Son{     constructor(address _mom){         MomContract mom=MomContract(_mom);         mom.SetFailed(true);             }      } 

When I try to deploy it with remix, it fails with revert

The transaction has been reverted to the initial state. Note: The called function should be payable if you send value and the value you send should be less than your current balance. Debug the transaction to get more information. 

I see no error in it, but how do I communicate from contract to contract?

how to uninstall mist permanently for Mac

Shopping cart
There are no products in the cart!
Continue shopping
0