Skip to content

Commit

Permalink
rm chain config check for input preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Aug 30, 2024
1 parent f7104e0 commit c34065f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/storage/blockchain/onchain-zkp-verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier {
txData: ContractInvokeTransactionData,
zkProofResponses: ZeroKnowledgeProofResponse[]
): Promise<Map<number, string>> {
const chainConfig = this._configs.find((i) => i.chainId == txData.chain_id);
if (!chainConfig) {
throw new Error(`config for chain id ${txData.chain_id} was not found`);
}
if (txData.method_id.replace('0x', '') !== OnChainZKPVerifier.SupportedMethodId) {
throw new Error(
`submit doesn't implement requested method id. Only '0x${OnChainZKPVerifier.SupportedMethodId}' is supported.`
Expand Down

0 comments on commit c34065f

Please sign in to comment.