Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Scoping for contract instances #271

Open
jthoene opened this issue Jul 19, 2019 · 1 comment · Fixed by #274
Open

Scoping for contract instances #271

jthoene opened this issue Jul 19, 2019 · 1 comment · Fixed by #274
Assignees

Comments

@jthoene
Copy link
Collaborator

jthoene commented Jul 19, 2019

If you instantiate a contract. Which has public functions defined, these functions are not shown when trying code completion for this contract instance.

Example code to reproduce this issue:

contract targetInterface{
    function deposit() public payable;
    function withdraw(uint withdrawAmount) public;
}

contract MyContract {
    targetInterface bankAddress = targetInterface(0x2D5848F4);
    uint amount = 1 ether;

	function deposit() public payable {
	    bankAddress. ;
	}
}
@andreasmuelder
Copy link
Member

This fix introduces regression with FQN Types

pragma solidity ^0.5.0;
contract TestOuter {
    struct TestInner {
        int256 x;
    }
}
contract EtherRouter {
      TestOuter.TestInner  test;    
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants