Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Dec 26, 2023
1 parent 2f1079d commit 39ee16c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/StealthChad.sol
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ interface IERC5564Announcer {
contract StealthChad {
IERC5564Announcer announcer;

error ZeroValue();
error NoPointInSendingAZeroValue();
error TransferFailure();

constructor(address payable _announcer) {
Expand All @@ -70,7 +70,7 @@ contract StealthChad {
/// @param viewTag The view tag derived from the shared secret.
function transferEthAndAnnounce(uint256 schemeId, address recipient, bytes memory ephemeralPubKey, uint8 viewTag) external payable {
if (msg.value == 0) {
revert ZeroValue();
revert NoPointInSendingAZeroValue();
}
bytes memory metadata = new bytes(57);
uint i;
Expand Down
4 changes: 2 additions & 2 deletions testIt.out
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Compiled 1 Solidity file successfully (evm target: paris).
'0xffeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee00000000000000000000000000000000000000000000000001b69b4bacd05f15'
]
}
✔ Do Something (731ms)
✔ Do Something (740ms)


1 passing (732ms)
1 passing (742ms)

0 comments on commit 39ee16c

Please sign in to comment.