Skip to content

Commit

Permalink
fix add ciphernode function
Browse files Browse the repository at this point in the history
  • Loading branch information
samepant committed Sep 16, 2024
1 parent 7913104 commit d041744
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ contract CiphernodeRegistryOwnable is ICiphernodeRegistry, OwnableUpgradeable {
}

function addCiphernode(address node) external onlyOwner {
uint256 ciphernode = uint256(bytes32(bytes20(node)));
uint160 ciphernode = uint160(node);
ciphernodes._insert(ciphernode);
numCiphernodes++;
emit CiphernodeAdded(
Expand Down

0 comments on commit d041744

Please sign in to comment.