Skip to content

Commit

Permalink
Merge pull request #1748 from OffchainLabs/deploy-script-private-key
Browse files Browse the repository at this point in the history
Add a raw l1 private key option to the deploy script
  • Loading branch information
PlasmaPower authored Aug 10, 2023
2 parents 3a31aa0 + 1a605dc commit 35dba73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func main() {
wasmmoduleroot := flag.String("wasmmoduleroot", "", "WASM module root hash")
wasmrootpath := flag.String("wasmrootpath", "", "path to machine folders")
l1passphrase := flag.String("l1passphrase", "passphrase", "l1 private key file passphrase")
l1privatekey := flag.String("l1privatekey", "", "l1 private key")
outfile := flag.String("l1deployment", "deploy.json", "deployment output json file")
l1ChainIdUint := flag.Uint64("l1chainid", 1337, "L1 chain ID")
l2ChainConfig := flag.String("l2chainconfig", "l2_chain_config.json", "L2 chain config json file")
Expand All @@ -66,6 +67,7 @@ func main() {
Pathname: *l1keystore,
Account: *deployAccount,
PasswordImpl: *l1passphrase,
PrivateKey: *l1privatekey,
}
l1TransactionOpts, _, err := util.OpenWallet("l1", &wallet, l1ChainId)
if err != nil {
Expand Down

0 comments on commit 35dba73

Please sign in to comment.