Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix: add new as default initFunction (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal authored Mar 15, 2022
1 parent 5761d89 commit 036972a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/near-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ const deploy = {
})
.option('initFunction', {
desc: 'Initialization method',
type: 'string'
type: 'string',
default: 'new'
})
.option('initArgs', {
desc: 'Initialization arguments',
Expand Down
3 changes: 2 additions & 1 deletion commands/dev-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ module.exports = {
})
.option('initFunction', {
desc: 'Initialization method',
type: 'string'
type: 'string',
default: 'new'
})
.option('initArgs', {
desc: 'Initialization arguments',
Expand Down

0 comments on commit 036972a

Please sign in to comment.