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:
Csongor Kiss 2023-08-28 14:13:43 +01:00 committed by Evan Gray
parent 79e255fa5b
commit 73fe6591cb
1 changed files with 2 additions and 2 deletions

View File

@ -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