Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Renames events
Browse files Browse the repository at this point in the history
  • Loading branch information
acenolaza committed Oct 3, 2023
1 parent b3c82a3 commit b63d8c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/utils/TimestampedHashRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract TimestampedHashRegistry is Ownable, EIP712, ITimestampedHashRegistry {
for (uint256 ind = 0; ind < signers.length; ind++) {
_hashTypeToSigners[hashType].add(signers[ind]);
}
emit HashTypeSignersSet(hashType, signers);
emit SetHashTypeSigners(hashType, signers);
}

function registerSignedHash(
Expand Down Expand Up @@ -67,7 +67,7 @@ contract TimestampedHashRegistry is Ownable, EIP712, ITimestampedHashRegistry {
signedHash.hash,
signedHash.timestamp
);
emit SignedHashRegistered(
emit RegisteredSignedHash(
hashType,
signedHash.hash,
signedHash.timestamp,
Expand Down
4 changes: 2 additions & 2 deletions contracts/utils/interfaces/ITimestampedHashRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
pragma solidity 0.8.17;

interface ITimestampedHashRegistry {
event HashTypeSignersSet(bytes32 indexed hashType, address[] signers);
event SetHashTypeSigners(bytes32 indexed hashType, address[] signers);

event SignedHashRegistered(
event RegisteredSignedHash(
bytes32 indexed hashType,
bytes32 hash,
uint256 timestamp,
Expand Down
4 changes: 2 additions & 2 deletions test/utils/TimestampedHashRegistry.sol.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('TimestampedHashRegistry', function () {
];
expect(await timestampedHashRegistry.getSigners(dapiFallbackHashType)).to.deep.equal([]);
await expect(timestampedHashRegistry.connect(roles.owner).setHashTypeSigners(dapiFallbackHashType, signers))
.to.emit(timestampedHashRegistry, 'HashTypeSignersSet')
.to.emit(timestampedHashRegistry, 'SetHashTypeSigners')
.withArgs(dapiFallbackHashType, signers);
expect(await timestampedHashRegistry.getSigners(dapiFallbackHashType)).to.deep.equal(signers);
});
Expand Down Expand Up @@ -155,7 +155,7 @@ describe('TimestampedHashRegistry', function () {
await expect(
timestampedHashRegistry.registerSignedHash(dapiFallbackHashType, { hash: root, timestamp }, signatures)
)
.to.emit(timestampedHashRegistry, 'SignedHashRegistered')
.to.emit(timestampedHashRegistry, 'RegisteredSignedHash')
.withArgs(dapiFallbackHashType, root, timestamp, signatures);
expect(await timestampedHashRegistry.hashTypeToSignedHash(dapiFallbackHashType)).to.contain(
root,
Expand Down

0 comments on commit b63d8c6

Please sign in to comment.