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(
|
.command(
|
||||||
"upgrade <package-dir>",
|
"upgrade <package-dir>",
|
||||||
"Perform upgrade after VAA has been submitted",
|
"Perform upgrade after VAA has been submitted",
|
||||||
(_yargs) =>
|
(yargs) =>
|
||||||
yargs
|
yargs
|
||||||
.positional("package-dir", {
|
.positional("package-dir", {
|
||||||
type: "string",
|
type: "string",
|
||||||
|
@ -365,7 +365,7 @@ export const builder = (y: typeof yargs) =>
|
||||||
.command(
|
.command(
|
||||||
"migrate",
|
"migrate",
|
||||||
"Perform migration after contract upgrade",
|
"Perform migration after contract upgrade",
|
||||||
(_yargs) =>
|
(yargs) =>
|
||||||
yargs
|
yargs
|
||||||
// TODO(csongor): once the sdk has the addresses, just look that up
|
// TODO(csongor): once the sdk has the addresses, just look that up
|
||||||
// based on the module
|
// based on the module
|
||||||
|
|
Loading…
Reference in New Issue