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

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type