Skip to content

Commit a4ee0d9

Browse files
committed
skip if no igp
1 parent 899a1ed commit a4ee0d9

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

typescript/infra/scripts/funding/reclaim-from-igp.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import chalk from 'chalk';
22
import { formatEther, parseEther } from 'ethers/lib/utils.js';
33

44
import { HyperlaneIgp } from '@hyperlane-xyz/sdk';
5-
import { objMap, promiseObjAll, rootLogger } from '@hyperlane-xyz/utils';
5+
import {
6+
isZeroishAddress,
7+
objMap,
8+
promiseObjAll,
9+
rootLogger,
10+
} from '@hyperlane-xyz/utils';
611

712
import { getEnvAddresses } from '../../config/registry.js';
813
import { getKeyFunderConfig } from '../../src/funding/key-funder.js';
@@ -81,7 +86,10 @@ async function main() {
8186
const filteredPaymasters = objMap(
8287
igp.map((_, contracts) => contracts.interchainGasPaymaster),
8388
(chain, paymaster) => {
84-
if (chainsToProcess.includes(chain)) {
89+
if (
90+
chainsToProcess.includes(chain) &&
91+
!isZeroishAddress(paymaster.address)
92+
) {
8593
return paymaster;
8694
}
8795
return undefined;

0 commit comments

Comments
 (0)