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

Composing multiple restrictions #15

Open
conspyrosy opened this issue Oct 31, 2020 · 0 comments
Open

Composing multiple restrictions #15

conspyrosy opened this issue Oct 31, 2020 · 0 comments

Comments

@conspyrosy
Copy link

conspyrosy commented Oct 31, 2020

I am trying to use this project to create a token with more than one restriction but I am struggling to do so and wondering what I am doing wrong.

Here is my code which is largely based on the code in the repo:

`
pragma solidity ^0.4.24;
import "./../mocks/BasicTokenMock.sol";
import "./restrictions/number-of-accounts/MaxNumShareholdersToken.sol";
import "./restrictions/ownership-percentage/IndividualOwnershipStakeToken.sol";

contract MyToken is BasicTokenMock, MaxNumShareholdersToken, IndividualOwnershipStakeToken {
    constructor (
        address initialAccount,
        uint256 initialBalance,
        uint256 _maxNumShareholders,
        uint256 globalMaxPercentOwnershipTimesOneThousand
    )
    BasicTokenMock(initialAccount, initialBalance)
    MaxNumShareholdersToken(_maxNumShareholders)
    IndividualOwnershipStakeToken(globalMaxPercentOwnershipTimesOneThousand)
    public {

    }
}

`

The error I'm seeing is:

TypeError: Linearization of inheritance graph impossible

From my understanding, this should work. What am I doing wrong?

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

2 participants
@conspyrosy and others