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

[Bug]: import as unsupported #2274

Closed
matmilbury opened this issue Jan 15, 2024 · 1 comment
Closed

[Bug]: import as unsupported #2274

matmilbury opened this issue Jan 15, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@matmilbury
Copy link

Describe the issue:

Slither can’t create an IR when a smart contract with renamed import (import { X as Y } from 'xyz.sol';).

Importing without the rename 'fixes' the issue.

Code example to reproduce the issue:

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

contract Bar {
    constructor() { }
}
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;

import { Bar as Bar2 } from "./Bar.sol";

contract Foo {
    constructor() {
        new Bar2();
    }
}

Version:

0.10.0

Relevant log output:

No response

@matmilbury matmilbury added the bug-candidate Bugs reports that are not yet confirmed label Jan 15, 2024
@0xalpharush
Copy link
Contributor

Thanks for your interest in Slither. This is a known issue that will take a big lift to properly support #1452

@0xalpharush 0xalpharush added bug Something isn't working duplicate This issue or pull request already exists and removed bug-candidate Bugs reports that are not yet confirmed labels Jan 16, 2024
@0xalpharush 0xalpharush changed the title [Bug-Candidate]: import as unsupported [Bug]: import as unsupported Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants