Skip to content

Commit

Permalink
remove optimization fields for zkSync contract verification
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Sep 6, 2024
1 parent 21c9b3b commit 758ca37
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 88 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import ContractVerificationFieldCompiler from '../fields/ContractVerificationFie
import ContractVerificationFieldName from '../fields/ContractVerificationFieldName';
import ContractVerificationFieldSources from '../fields/ContractVerificationFieldSources';
import ContractVerificationFieldZkCompiler from '../fields/ContractVerificationFieldZkCompiler';
import ContractVerificationFieldZkOptimization from '../fields/ContractVerificationFieldZkOptimization';

const FILE_TYPES = [ '.json' as const ];
const rollupFeature = config.features.rollup;
Expand All @@ -27,7 +26,6 @@ const ContractVerificationStandardInput = ({ config }: { config: SmartContractVe
hint="Upload the standard input JSON file created during contract compilation."
required
/>
{ rollupFeature.isEnabled && rollupFeature.type === 'zkSync' && <ContractVerificationFieldZkOptimization config={ config }/> }
{ !config?.is_rust_verifier_microservice_enabled && <ContractVerificationFieldAutodetectArgs/> }
</ContractVerificationMethod>
);
Expand Down
2 changes: 0 additions & 2 deletions ui/contractVerification/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export interface FormFieldsStandardInputZk {
autodetect_constructor_args: boolean;
constructor_args: string;
license_type: LicenseOption | null;
is_optimization_enabled: boolean;
optimization_mode: string | undefined;
}

export interface FormFieldsSourcify {
Expand Down
6 changes: 0 additions & 6 deletions ui/contractVerification/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@ export function prepareRequestBody(data: FormFields): FetchParams['body'] {

// zkSync fields
'zk_compiler' in _data && _data.zk_compiler && body.set('zk_compiler_version', _data.zk_compiler.value);
if ('is_optimization_enabled' in _data) {
body.set('is_optimization_enabled', String(Boolean(_data.is_optimization_enabled)));
if (_data.is_optimization_enabled && 'optimization_mode' in _data && _data.optimization_mode) {
body.set('optimization_runs', _data.optimization_mode);
}
}

return body;
}
Expand Down

0 comments on commit 758ca37

Please sign in to comment.