Skip to content

Commit

Permalink
infer manual submission for zksync if submitter is not signer
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalaji committed Dec 4, 2024
1 parent 25f9614 commit 29cbd50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions typescript/infra/src/govern/HyperlaneAppGovernor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Ownable__factory } from '@hyperlane-xyz/core';
import {
ChainMap,
ChainName,
ChainTechnicalStack,
CheckerViolation,
HyperlaneApp,
HyperlaneAppChecker,
Expand Down Expand Up @@ -508,6 +509,14 @@ export abstract class HyperlaneAppGovernor<
return { type: SubmissionType.SIGNER, chain, call };
}

// If the technical stack is ZKSync and we can't submit with the signer,
// have to fallback to manual submission because we are not allowed to
// estimate gas for non-signer addresses on ZKSync
const { technicalStack } = multiProvider.getChainMetadata(chain);
if (technicalStack === ChainTechnicalStack.ZKSync) {
return { type: SubmissionType.MANUAL, chain, call };
}

// Check if the transaction will succeed with a SAFE
const safeAddress =
this.checker.configMap[chain].ownerOverrides?._safeAddress;
Expand Down

0 comments on commit 29cbd50

Please sign in to comment.