Skip to content

Commit 6783c35

Browse files
committed
chore: rename registryUrl -> registry
1 parent 0ba7d91 commit 6783c35

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/contracts/interfaces/IReleaseManager.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ interface IReleaseManagerErrors {
1111
interface IReleaseManagerTypes {
1212
/// @notice Represents a software artifact with its digest and registry URL.
1313
/// @param digest The hash digest of the artifact.
14-
/// @param registryUrl The URL where the artifact can be found.
14+
/// @param registry Where the artifact can be found.
1515
struct Artifact {
1616
bytes32 digest;
17-
string registryUrl;
17+
string registry;
1818
}
1919

2020
/// @notice Represents a release containing multiple artifacts and an upgrade deadline.

src/test/unit/ReleaseManagerUnit.t.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ contract ReleaseManagerUnitTests is EigenLayerUnitTestSetup, IReleaseManagerErro
4747
// Setup default test data
4848
defaultOperatorSet = OperatorSet(defaultAVS, 0);
4949

50-
defaultArtifacts.push(Artifact({digest: keccak256("artifact1"), registryUrl: "https://example.com/artifact1"}));
51-
defaultArtifacts.push(Artifact({digest: keccak256("artifact2"), registryUrl: "https://example.com/artifact2"}));
50+
defaultArtifacts.push(Artifact({digest: keccak256("artifact1"), registry: "https://example.com/artifact1"}));
51+
defaultArtifacts.push(Artifact({digest: keccak256("artifact2"), registry: "https://example.com/artifact2"}));
5252

5353
defaultRelease.upgradeByTime = uint32(block.timestamp + 1 days);
5454

@@ -69,7 +69,7 @@ contract ReleaseManagerUnitTests is EigenLayerUnitTestSetup, IReleaseManagerErro
6969
for (uint i = 0; i < numArtifacts; i++) {
7070
artifacts[i] = Artifact({
7171
digest: keccak256(abi.encodePacked("artifact", i)),
72-
registryUrl: string(abi.encodePacked("https://example.com/artifact", i))
72+
registry: string(abi.encodePacked("https://example.com/artifact", i))
7373
});
7474
}
7575
return _createRelease(artifacts, upgradeByTime);
@@ -92,7 +92,7 @@ contract ReleaseManagerUnitTests is EigenLayerUnitTestSetup, IReleaseManagerErro
9292

9393
for (uint i = 0; i < actualRelease.artifacts.length; i++) {
9494
assertEq(actualRelease.artifacts[i].digest, expectedRelease.artifacts[i].digest, "artifact digest mismatch");
95-
assertEq(actualRelease.artifacts[i].registryUrl, expectedRelease.artifacts[i].registryUrl, "artifact registryUrl mismatch");
95+
assertEq(actualRelease.artifacts[i].registry, expectedRelease.artifacts[i].registry, "artifact registry mismatch");
9696
}
9797

9898
console.log("Success!".green().bold());

0 commit comments

Comments
 (0)