Solidity contract test error : is not implicitly convertible to expected type uint256





I had this piece of code in my contract (just a property) and when i write my test, to my surprise i se that i need to include a function() parameter in the code to call it.




uint public _landCount;


// In test

contractInstance._landCount(); // Returns value.



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm