Skip to content

Commit

Permalink
Change from ParentNode to parentNode
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Mar 1, 2024
1 parent 8eaa28e commit 9659671
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
14 changes: 7 additions & 7 deletions contracts/reverseRegistrar/SignatureReverseResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ contract SignatureReverseResolver is Ownable, ISignatureReverseResolver {
mapping(uint64 => mapping(bytes32 => string)) versionable_names;
mapping(bytes32 => uint64) internal recordVersions;

bytes32 public immutable ParentNode;
bytes32 public immutable parentNode;
uint256 public immutable coinType;

/*
* @dev Constructor
* @param ParentNode The namespace to set.
* @param parentNode The namespace to set.
* @param _coinType The cointype converted from the chainId of the chain this contract is deployed to.
*/
constructor(bytes32 _ParentNode, uint256 _coinType) {
ParentNode = _ParentNode;
constructor(bytes32 _parentNode, uint256 _coinType) {
parentNode = _parentNode;
coinType = _coinType;
}

Expand Down Expand Up @@ -200,7 +200,7 @@ contract SignatureReverseResolver is Ownable, ISignatureReverseResolver {
function _clearRecords(address addr) internal {
bytes32 labelHash = LowLevelCallUtils.sha3HexAddress(addr);
bytes32 reverseNode = keccak256(
abi.encodePacked(ParentNode, labelHash)
abi.encodePacked(parentNode, labelHash)
);
recordVersions[reverseNode]++;
emit VersionChanged(reverseNode, recordVersions[reverseNode]);
Expand Down Expand Up @@ -241,15 +241,15 @@ contract SignatureReverseResolver is Ownable, ISignatureReverseResolver {
return
keccak256(
abi.encodePacked(
ParentNode,
parentNode,
LowLevelCallUtils.sha3HexAddress(addr)
)
);
}

function _getNamehash(address addr) internal view returns (bytes32) {
bytes32 labelHash = LowLevelCallUtils.sha3HexAddress(addr);
return keccak256(abi.encodePacked(ParentNode, labelHash));
return keccak256(abi.encodePacked(parentNode, labelHash));
}

function _setLastUpdated(bytes32 node, uint256 inceptionDate) internal {
Expand Down
4 changes: 2 additions & 2 deletions deployments/arbitrumSepolia/L2ReverseRegistrar.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions deployments/baseSepolia/L2ReverseRegistrar.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions deployments/optimismSepolia/L2ReverseRegistrar.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 9659671

Please sign in to comment.