We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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";
`
The error I'm seeing is:
TypeError: Linearization of inheritance graph impossible
From my understanding, this should work. What am I doing wrong?
The text was updated successfully, but these errors were encountered: