Skip to content

Commit 4a95fcd

Browse files
committed
fix: ERC725X and ERC725Y inherit Ownable first
this solves a solc compile error `TypeError: Linearization of inheritance graph impossible` by inheriting the "most base-like" contracts first to prevent errors from inheriting contract. See a similar fix here OpenZeppelin/openzeppelin-contracts#1128
1 parent 96f2e45 commit 4a95fcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

implementations/contracts/ERC725/ERC725X.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import "@openzeppelin/contracts/access/Ownable.sol";
1616
*
1717
* @author Fabian Vogelsteller <[email protected]>
1818
*/
19-
contract ERC725X is ERC725XCore, Ownable {
19+
contract ERC725X is Ownable, ERC725XCore {
2020
/**
2121
* @notice Sets the owner of the contract
2222
* @param _newOwner the owner of the contract.

implementations/contracts/ERC725/ERC725Y.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import "@openzeppelin/contracts/access/Ownable.sol";
1616
*
1717
* @author Fabian Vogelsteller <[email protected]>
1818
*/
19-
contract ERC725Y is ERC725YCore, Ownable {
19+
contract ERC725Y is Ownable, ERC725YCore {
2020
/**
2121
* @notice Sets the owner of the contract
2222
* @param _newOwner the owner of the contract.

0 commit comments

Comments
 (0)