ProviderError: max code size exceeded
Opened this issue · 0 comments
anilpandey071999 commented
I am getting the error "ProviderError: max code size exceeded" when I try to deploy the Voltz XYZ Core contract. I have tried to reduce the size of the contract by removing unnecessary functions and variables, but I am still getting the error.
Error:-
ProviderError: max code size exceeded
at HttpProvider.request (E:\fullthrottlelabs\voltz-core\node_modules\hardhat\src\internal\core\providers\http.ts:88:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
An unexpected error occurred:
Error: ERROR processing E:\fullthrottlelabs\voltz-core\deploy\0.factory.ts:
ProviderError: max code size exceeded
at HttpProvider.request (E:\fullthrottlelabs\voltz-core\node_modules\hardhat\src\internal\core\providers\http.ts:88:21)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at DeploymentsManager.executeDeployScripts (E:\fullthrottlelabs\voltz-core\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1223:19)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DeploymentsManager.runDeploy (E:\fullthrottlelabs\voltz-core\node_modules\hardhat-deploy\src\DeploymentsManager.ts:1053:5)
at async SimpleTaskDefinition.action (E:\fullthrottlelabs\voltz-core\node_modules\hardhat-deploy\src\index.ts:422:5)
at async Environment._runTaskDefinition (E:\fullthrottlelabs\voltz-core\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at async Environment.run (E:\fullthrottlelabs\voltz-core\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)
at async SimpleTaskDefinition.action (E:\fullthrottlelabs\voltz-core\node_modules\hardhat-deploy\src\index.ts:568:32)
at async Environment._runTaskDefinition (E:\fullthrottlelabs\voltz-core\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at async Environment.run (E:\fullthrottlelabs\voltz-core\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)
at async SimpleTaskDefinition.action (E:\fullthrottlelabs\voltz-core\node_modules\hardhat-deploy\src\index.ts:653:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This encountered while deploying MarginEngine and VAMM