Skip to content

Commit

Permalink
fix: resove empty constructor arguments properly
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriyaga committed Dec 25, 2024
1 parent 4484934 commit e3f982f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/api/contract/contract.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ describe("ContractController", () => {
codeFormat: "vyper-multi-file",
compilerVyperVersion: "0.3.3",
compilerZkvyperVersion: "v1.3.11",
constructorArguments: null,
constructorArguments: "0x",
contractAddress: "0x14174c76E073f8efEf5C1FE0dd0f8c2Ca9F21e62",
contractName: "contracts/Greeter.vy:Greeter",
optimizationUsed: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/api/contract/contract.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class ContractController {
? request.constructorArguements.slice(0, 2) !== "0x"
? `0x${request.constructorArguements}`
: request.constructorArguements
: null,
: "0x",
...(isSolidityContract && {
compilerZksolcVersion: request.zksolcVersion,
compilerSolcVersion: request.compilerversion,
Expand Down

0 comments on commit e3f982f

Please sign in to comment.