clients/js: fix aptos upgrade and migrate commands
For some reason the bound variables in the lambda were underscored, unclear why. In turn, `yargs` referred to the package, resulting in runtime errors. This is the sort of thing that an actual type system would help with.
This commit is contained in:
parent
79e255fa5b
commit
73fe6591cb
|
@ -324,7 +324,7 @@ export const builder = (y: typeof yargs) =>
|
|||
.command(
|
||||
"upgrade <package-dir>",
|
||||
"Perform upgrade after VAA has been submitted",
|
||||
(_yargs) =>
|
||||
(yargs) =>
|
||||
yargs
|
||||
.positional("package-dir", {
|
||||
type: "string",
|
||||
|
@ -365,7 +365,7 @@ export const builder = (y: typeof yargs) =>
|
|||
.command(
|
||||
"migrate",
|
||||
"Perform migration after contract upgrade",
|
||||
(_yargs) =>
|
||||
(yargs) =>
|
||||
yargs
|
||||
// TODO(csongor): once the sdk has the addresses, just look that up
|
||||
// based on the module
|
||||
|
|
Loading…
Reference in New Issue