clients/token_bridge - allow multiple guardians when generating governance VAAs

This commit is contained in:
justinschuldt 2022-04-01 09:45:09 -05:00 committed by Justin Schuldt
parent f52bd8fcd2
commit 5893e0c870
1 changed files with 4 additions and 8 deletions

View File

@ -88,7 +88,7 @@ yargs(hideBin(process.argv))
required: true required: true
}) })
.option('guardian_secret', { .option('guardian_secret', {
describe: 'Guardian\'s secret key', describe: 'Guardian\'s secret key, CSV allowed',
type: "string", type: "string",
default: "cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0" default: "cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0"
}) })
@ -109,9 +109,7 @@ yargs(hideBin(process.argv))
"0x0000000000000000000000000000000000000000000000000000000000000004", "0x0000000000000000000000000000000000000000000000000000000000000004",
Math.floor(Math.random() * 100000000), Math.floor(Math.random() * 100000000),
data, data,
[ argv.guardian_secret.split(','),
argv.guardian_secret
],
0, 0,
0 0
); );
@ -131,7 +129,7 @@ yargs(hideBin(process.argv))
required: true required: true
}) })
.option('guardian_secret', { .option('guardian_secret', {
describe: 'Guardian\'s secret key', describe: 'Guardian\'s secret key, CSV allowed',
type: "string", type: "string",
default: "cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0" default: "cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0"
}) })
@ -151,9 +149,7 @@ yargs(hideBin(process.argv))
"0x0000000000000000000000000000000000000000000000000000000000000004", "0x0000000000000000000000000000000000000000000000000000000000000004",
Math.floor(Math.random() * 100000000), Math.floor(Math.random() * 100000000),
data, data,
[ argv.guardian_secret.split(','),
argv.guardian_secret
],
0, 0,
0 0
); );