Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visibility]

The tag has no usage guidance.

1
vote
1answer
23 views

Unit test compilation failed due member not found or not visible

I have written an unit test but when I launch it I get following error: Test.sol:25:22: TypeError: Member "val1" not found or not visible after argument-dependent lookup in function () view external ...
4
votes
1answer
43 views

What are function types in Solidity used for?

Can you provide an example of when and why you would want to define and use a function type, as a opposed to simply calling a function? I understand how from here: https://ethereum.stackexchange.com/...
2
votes
3answers
475 views

Accessing not public variables

Is it possible as the creater of the smart contract to access a not public variable? E.g.: contract MyContract { uint256 someLevel; function changeLevel(uint _newLevel) public { ...
0
votes
1answer
145 views

Calling External Contract Function with Modifiers - Results in Unknown Error

I am attempting to call an external contract function, but modifier on the function is throwing an error. And I can't figure out why. Any help is appreciated! Info is below: I have two contracts: ...
1
vote
1answer
139 views

Why are parameters of external functions not lvalue types?

When a function's visibility is external, trying to modify the function parameters within that function gives the error: TypeError: Expression has to be an lvalue. However, if I change the ...