Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
teddy-nodeset committed Apr 16, 2024
1 parent 8ef1fd9 commit b4eb5b9
Show file tree
Hide file tree
Showing 3 changed files with 281 additions and 247 deletions.
12 changes: 1 addition & 11 deletions contracts/Operator/NodeAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,7 @@ contract NodeAccount is UpgradeableBase, Errors {
}

modifier hasConfig(address _minipool) {
require(
keccak256(abi.encodePacked(configs[_minipool].timezoneLocation)) != keccak256(abi.encodePacked('')) &&
configs[_minipool].bondAmount != 0 &&
configs[_minipool].minimumNodeFee != 0 &&
configs[_minipool].validatorPubkey.length != 0 &&
configs[_minipool].validatorSignature.length != 0 &&
configs[_minipool].depositDataRoot != bytes32(0) &&
configs[_minipool].salt != 0 &&
configs[_minipool].expectedMinipoolAddress != address(0),
'ValidatorConfig is not initialized!'
);
require(lockStarted[_minipool] != 0, "nodeAccount not initialized");
_;
}

Expand Down
Loading

0 comments on commit b4eb5b9

Please sign in to comment.