Skip to content

Commit

Permalink
Merge pull request #62 from ChainSafe/fix-at-contract-factory-deploy
Browse files Browse the repository at this point in the history
Tiny fix at contract-factory deploy
  • Loading branch information
Muhammad-Altabba authored Sep 12, 2024
2 parents 3dfe26c + b7da50d commit e49f8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contract-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class ContractFactory<Abi extends ContractAbi> 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;
Expand Down

0 comments on commit e49f8dc

Please sign in to comment.