File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cmd/creinit/template/workflow/porExampleDev/contracts/evm/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ contract MessageEmitter is ITypeAndVersion {
2626
2727 function getMessage(address emitter, uint256 timestamp) public view returns (string memory) {
2828 bytes32 key = _hashKey(emitter, timestamp);
29- require(bytes(s_messages[key]).length == 0, " Message does not exist for the given sender and timestamp" );
29+ require(bytes(s_messages[key]).length > 0, " Message does not exist for the given sender and timestamp" );
3030 return s_messages[key];
3131 }
3232
@@ -40,4 +40,4 @@ contract MessageEmitter is ITypeAndVersion {
4040 function _hashKey(address emitter, uint256 timestamp) internal pure returns (bytes32) {
4141 return keccak256(abi.encode(emitter, timestamp));
4242 }
43- }
43+ }
You can’t perform that action at this time.
0 commit comments