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:
parent
d823366cf1
commit
df0a4c088b
|
@ -87,6 +87,11 @@ yargs(hideBin(process.argv))
|
|||
type: "string",
|
||||
required: true
|
||||
})
|
||||
.option('guardian_secret', {
|
||||
describe: 'Guardian\'s secret key',
|
||||
type: "string",
|
||||
default: "cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0"
|
||||
})
|
||||
}, async (argv: any) => {
|
||||
let data = [
|
||||
"0x",
|
||||
|
@ -105,7 +110,7 @@ yargs(hideBin(process.argv))
|
|||
Math.floor(Math.random() * 100000000),
|
||||
data,
|
||||
[
|
||||
"cfb12303a19cde580bb4dd771639b0d26bc68353645571a8cff516ab2ee113a0"
|
||||
argv.guardian_secret
|
||||
],
|
||||
0,
|
||||
0
|
||||
|
|
Loading…
Reference in New Issue