Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
2answers
22 views

Can events always be called directly by user accounts? Is there a way to make them internal?

I am using events to fire an order, basically using them as a vehicle for a master/slave connection with an IoT device, through the blockchain. Ideally i want to always verify the right msg.sender is ...
1
vote
1answer
37 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
65 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
620 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
186 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
208 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 ...