Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions added into Contracts to improve #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cryptoryda
Copy link

Contracts safety

What this PR contain :

  • [1] Checks of if it is owner or not in HelloWormhole.sol
    :- This checks is helpful then regular require statements.
    :- also there is a recieve() fallback function to handle unexpected Ether transfers.
- modifier onlyWormholeRelayer() {
        require(msg.sender == address(wormholeRelayer), "Only relayer allowed");
        _;
    }
  • [2] Functions added into HelloWormholeProtections.sol

  • 1. HelloWormholeProtections.sol

    1. setGreeting
  • [3] constructor value changed in HelloWormholeConfirmation.sol

- constructor(
        address _wormholeRelayer,
        address _wormhole,
        uint16 _chainId
    ) Base(_wormholeRelayer, _wormhole) {
        chainId = _chainId;
    }

@cryptoryda cryptoryda changed the title functions added into Contracts functions added into Contracts to improve Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant