Skip to content

Commit

Permalink
fix getVerificationId request params
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentysc committed Nov 11, 2024
1 parent cf39322 commit a3cce66
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { ChainConfig } from '@nomicfoundation/hardhat-verify/types';
import axios from 'axios';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { ChainConfig } from '@nomicfoundation/hardhat-verify/types';
import { COMPILATION_ERRORS, NO_MATCHING_CONTRACT } from '../../constants';
import { ZkSyncVerifyPluginError } from '../../errors';
import { ContractInformation } from '../../solc/types';
import { extractQueryParams, handleAxiosError } from '../../utils';
import { ZksyncContractVerificationInvalidStatusCodeError } from '../errors';
import {
ContractVerifyDataInfo,
VerificationService,
VerificationServiceInitialVerifyRequest,
VerificationServiceVerificationIdResponse,
} from '../service';
import { ZkSyncExplorerVerifyRequest } from '../verify-contract-request';
import { ZkSyncVerifyPluginError } from '../../errors';
import { ContractInformation } from '../../solc/types';
import { COMPILATION_ERRORS, NO_MATCHING_CONTRACT } from '../../constants';
import { ZksyncContractVerificationInvalidStatusCodeError } from '../errors';
import { ZksyncBlockExplorerResponse } from './verification-status-response';
import { builtinChains } from './chain-config';
import { ZksyncBlockExplorerResponse } from './verification-status-response';

export class ZkSyncExplorerService extends VerificationService<
number,
Expand Down Expand Up @@ -89,7 +89,7 @@ export class ZkSyncExplorerService extends VerificationService<
try {
const [verifyUrl, params] = extractQueryParams(this.verifyUrl);
const request = this.generateRequest(req);
const response = await axios.post(verifyUrl, request, params);
const response = await axios.post(verifyUrl, request, { params });
const zkSyncBlockExplorerResponse = new ZkSyncBlockExplorerVerificationIdResponse(response);

if (!zkSyncBlockExplorerResponse.isOk()) {
Expand Down

0 comments on commit a3cce66

Please sign in to comment.