Skip to content

Commit

Permalink
Merge SFCLib and SFC contracts (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ authored Oct 31, 2024
1 parent 975107b commit 1bc06aa
Show file tree
Hide file tree
Showing 11 changed files with 827 additions and 1,123 deletions.
7 changes: 3 additions & 4 deletions contracts/interfaces/ISFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ interface ISFC {
view
returns (
uint256 status,
uint256 deactivatedTime,
uint256 deactivatedEpoch,
uint256 receivedStake,
address auth,
uint256 createdEpoch,
uint256 createdTime,
address auth
uint256 deactivatedTime,
uint256 deactivatedEpoch
);

function getValidatorID(address) external view returns (uint256);
Expand Down Expand Up @@ -162,7 +162,6 @@ interface ISFC {
uint256 sealedEpoch,
uint256 _totalSupply,
address nodeDriver,
address lib,
address consts,
address _owner
) external;
Expand Down
3 changes: 1 addition & 2 deletions contracts/sfc/NetworkInitializer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ contract NetworkInitializer {
uint256 sealedEpoch,
uint256 totalSupply,
address payable _sfc,
address _lib,
address _auth,
address _driver,
address _evmWriter,
Expand All @@ -37,6 +36,6 @@ contract NetworkInitializer {
consts.updateGasPriceBalancingCounterweight(3600);
consts.transferOwnership(_owner);

ISFC(_sfc).initialize(sealedEpoch, totalSupply, _auth, _lib, address(consts), _owner);
ISFC(_sfc).initialize(sealedEpoch, totalSupply, _auth, address(consts), _owner);
}
}
Loading

0 comments on commit 1bc06aa

Please sign in to comment.