Skip to content

Commit

Permalink
connectors: wormhole visibility and ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalende committed Jun 22, 2023
1 parent 1c90cd2 commit 0d510d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ jobs:
run: yarn workspace @mimic-fi/v3-connectors test:mainnet
- name: Test polygon
run: yarn workspace @mimic-fi/v3-connectors test:polygon
- name: Test avalanche
run: yarn workspace @mimic-fi/v3-connectors test:avalanche
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contract WormholeConnector {
uint256 private constant AVALANCHE_ID = 43114;

// Reference to the Wormhole's CircleRelayer contract of the source chain
IWormhole private immutable wormholeCircleRelayer;
IWormhole public immutable wormholeCircleRelayer;

/**
* @dev Creates a new Wormhole connector
Expand Down Expand Up @@ -89,11 +89,11 @@ contract WormholeConnector {
}

/**
* @dev Internal function to tell the Wormhole network ID based on a chain ID
* @dev Tells the Wormhole network ID based on a chain ID
* @param chainId ID of the chain being queried
* @return Wormhole network ID associated to the requested chain ID
*/
function _getWormholeNetworkId(uint256 chainId) private pure returns (uint16) {
function _getWormholeNetworkId(uint256 chainId) internal pure returns (uint16) {
if (chainId == ETHEREUM_ID) return ETHEREUM_WORMHOLE_NETWORK_ID;
else if (chainId == POLYGON_ID) return POLYGON_WORMHOLE_NETWORK_ID;
else if (chainId == ARBITRUM_ID) return ARBITRUM_WORMHOLE_NETWORK_ID;
Expand Down

0 comments on commit 0d510d2

Please sign in to comment.