clients/token_bridge: add option to specify guardian secret in generate_governance_vaa (#833)

Useful for generating testnet registration VAAs

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
This commit is contained in:
Csongor Kiss 2022-02-09 11:17:17 +00:00 committed by GitHub
parent d823366cf1
commit df0a4c088b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -87,6 +87,11 @@ yargs(hideBin(process.argv))
type: "string", type: "string",
required: true required: true
}) })
.option('guardian_secret', {
describe: 'Guardian\'s secret key',
type: "string",
default: "cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0"
})
}, async (argv: any) => { }, async (argv: any) => {
let data = [ let data = [
"0x", "0x",
@ -105,7 +110,7 @@ yargs(hideBin(process.argv))
Math.floor(Math.random() * 100000000), Math.floor(Math.random() * 100000000),
data, data,
[ [
"cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0" argv.guardian_secret
], ],
0, 0,
0 0