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

Support deploy time linking #91

Open
smiasojed opened this issue Oct 18, 2024 · 0 comments
Open

Support deploy time linking #91

smiasojed opened this issue Oct 18, 2024 · 0 comments

Comments

@smiasojed
Copy link
Collaborator

Add support for deploy time linking to compile this code correctly:

// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.7.0 <0.9.0;

library Assert {
    function equal(uint256 a, uint256 b) public pure returns (bool result) {
    result = (a == b);
  }
}

contract TestAssert {
    function checkEquality(uint256 a, uint256 b) public pure returns (string memory) {
        Assert.equal(a, b);
        return "Values are equal";
    }
}
@xermicus xermicus added this to the Initial release milestone Oct 25, 2024
@athei athei moved this to Minimal Feature Launch in Smart Contracts Dec 11, 2024
@athei athei moved this from Minimal Feature Launch to Polkadot APIs in Smart Contracts Dec 11, 2024
@athei athei moved this from Polkadot APIs to Minimal Feature Launch in Smart Contracts Dec 11, 2024
@athei athei moved this from Minimal Feature Launch to Polkadot APIs in Smart Contracts Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Polkadot APIs
Development

No branches or pull requests

2 participants