Skip to content

Commit

Permalink
chore(update): add zeta_mainnet to address_tools (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresaiello authored Feb 5, 2024
1 parent 31b7473 commit 5b7c26d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion contracts/evm/tools/ZetaInteractor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ abstract contract ZetaInteractor is Ownable2Step, ZetaInteractorErrors {
modifier isValidRevertCall(ZetaInterfaces.ZetaRevert calldata zetaRevert) {
_isValidCaller();
if (zetaRevert.zetaTxSenderAddress != address(this)) revert InvalidZetaRevertCall();
if (zetaRevert.sourceChainId != currentChainId) revert InvalidZetaRevertCall();
_;
}

Expand Down
4 changes: 2 additions & 2 deletions lib/address.tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export const nonZetaAddress: NonZetaAddress[] = [
"weth9",
];

export declare type ZetaProtocolMainNetwork = "bsc_mainnet" | "eth_mainnet";
export const zetaProtocolMainNetworks: ZetaProtocolMainNetwork[] = ["eth_mainnet", "bsc_mainnet"];
export declare type ZetaProtocolMainNetwork = "bsc_mainnet" | "eth_mainnet" | "zeta_mainnet";
export const zetaProtocolMainNetworks: ZetaProtocolMainNetwork[] = ["eth_mainnet", "bsc_mainnet", "zeta_mainnet"];

export declare type ZetaProtocolNetwork = ZetaProtocolMainNetwork | ZetaProtocolTestNetwork;
export const zetaProtocolNetworks: ZetaProtocolNetwork[] = [...zetaProtocolTestNetworks, ...zetaProtocolMainNetworks];
Expand Down
Loading

0 comments on commit 5b7c26d

Please sign in to comment.