-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for validator to just create wallet or contract #910
Conversation
Codecov Report
@@ Coverage Diff @@
## master #910 +/- ##
==========================================
- Coverage 51.78% 47.47% -4.31%
==========================================
Files 228 216 -12
Lines 28447 24346 -4101
Branches 502 502
==========================================
- Hits 14732 11559 -3173
+ Misses 12139 11208 -931
- Partials 1576 1579 +3 |
cmd/nitro/nitro.go
Outdated
if !chainFound { | ||
// If persistent-chain not defined, user not creating custom chain | ||
return nil, nil, nil, nil, nil, fmt.Errorf("Unknown chain with L1: %d, L2: %d\n", l1ChainId.Uint64(), l2ChainId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might still want to say something about setting the persistent chain since they could have a full custom config?
daSigner, err = arbnode.GetSignerFromWallet(l1Wallet) | ||
if err != nil { | ||
fmt.Printf("%v\n", err.Error()) | ||
return | ||
} | ||
|
||
l1TransactionOpts, err = util.GetTransactOptsFromWallet( | ||
l1Wallet, | ||
new(big.Int).SetUint64(nodeConfig.L1.ChainID), | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point we really need to unify these code paths, but I don't think it's worth it for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.