Skip to content

Commit

Permalink
Update test naming and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jhweintraub committed Dec 10, 2024
1 parent d8430ac commit decf834
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/gas-snapshots/ccip.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ RMNRemote_constructor:test_constructor() (gas: 8398)
RMNRemote_curse:test_curse_AlreadyCursed_duplicateSubject_reverts() (gas: 154501)
RMNRemote_curse:test_curse_calledByNonOwner_reverts() (gas: 18734)
RMNRemote_curse:test_curse_success() (gas: 149475)
RMNRemote_global_curses:test_global_curses_success() (gas: 71750)
RMNRemote_global_curses:test_isCursed_globalCurseSubject() (gas: 71715)
RMNRemote_isBlessed:test_isBlessed() (gas: 17588)
RMNRemote_setConfig:test_setConfig_ZeroValueNotAllowed_revert() (gas: 37971)
RMNRemote_setConfig:test_setConfig_addSigner_removeSigner_success() (gas: 993448)
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/v0.8/ccip/rmn/RMNRemote.sol
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ contract RMNRemote is Ownable2StepMsgSender, ITypeAndVersion, IRMNRemote, IRMN {
/// @inheritdoc IRMNRemote
function isCursed() external view override(IRMN, IRMNRemote) returns (bool) {
// There are zero curses under normal circumstances, which means it's cheaper to check for the absence of curses.
// than to check the subject list twice, as we have to check for the global curse subjects.
// than to check the subject list for the global curse subject.
if (s_cursedSubjects.length() == 0) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {GLOBAL_CURSE_SUBJECT} from "../../../rmn/RMNRemote.sol";
import {RMNRemoteSetup} from "./RMNRemoteSetup.t.sol";

contract RMNRemote_global_curses is RMNRemoteSetup {
function test_global_curses_success() public {
function test_isCursed_globalCurseSubject() public {
bytes16 randSubject = bytes16(keccak256("random subject"));
assertFalse(s_rmnRemote.isCursed());
assertFalse(s_rmnRemote.isCursed(randSubject));
Expand Down

0 comments on commit decf834

Please sign in to comment.