From b7da50ddf86a6e1f1fe25909f16d22df888ee06c Mon Sep 17 00:00:00 2001 From: Muhammad-Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:45:03 +0200 Subject: [PATCH] tiny fix at contract-factory deploy --- src/contract-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contract-factory.ts b/src/contract-factory.ts index e205f01..01f3ed6 100644 --- a/src/contract-factory.ts +++ b/src/contract-factory.ts @@ -277,7 +277,7 @@ export class ContractFactory extends Web3Context { } > { let modArgs = args; - if (!Array.isArray(args)) { + if (args && !Array.isArray(args)) { // tolerate if there was only one parameter for deploy, // which was passed as-is without wrapping it inside an array. modArgs = [args] as any;