Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests stall when calling function with dynamically-sized array as input #5

Closed
travs opened this issue Oct 10, 2017 · 2 comments
Closed

Comments

@travs
Copy link

travs commented Oct 10, 2017

Am I doing something wrong?

e.g.

My.sol:

contract My {
    function myFunc(address[] addrs) returns (uint) {
        return 0;
    }
}

My.t.sol:

import "ds-test/test.sol";
import "./My.sol";

contract MyTest is DSTest {
    My contractInstance;

    function setUp() {
        contractInstance = new My();
    }

    function testFunc() {
        address[] addrs;
        addrs.push(this);
        contractInstance.myFunc(addrs); // hangs here
    }
}

$ solc --version
solc, the solidity compiler commandline interface
Version: 0.4.17+commit.bdeb9e52.Linux.g++

$ dapp --version
dapp 0.5.6
@rainbreak
Copy link
Member

@travs this is fixed now right?

@travs
Copy link
Author

travs commented Nov 20, 2017

@rainbreak
This still stalls for me it seems :S
Last output is

Running 1 tests for src/My.t.sol:MyTest # then it hangs forever
$ dapp --version
dapp 0.7.4

$ solc --version
solc, the solidity compiler commandline interface
Version: 0.4.17+commit.bdeb9e52.Linux.g++

@MrChico MrChico closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants