Skip to content

Commit

Permalink
feat: address-zero check
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Jan 10, 2024
1 parent bb61af1 commit cab4379
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/wormhole/external/callworm/GettersGetter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ pragma solidity ^0.8.0;
import "../wormhole/Getters.sol";

contract GettersGetter {
error WormholeStateAddressZero();

Getters immutable public WORMHOLE_STATE;

constructor(address wormholeState) {
if (wormholeState == address(0)) revert WormholeStateAddressZero();
WORMHOLE_STATE = Getters(wormholeState);
}

Expand Down

0 comments on commit cab4379

Please sign in to comment.