-
Notifications
You must be signed in to change notification settings - Fork 3
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
Revived submitBatch #42
Conversation
38964e8
to
614c022
Compare
614c022
to
6765dd6
Compare
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.
Looks good to me. Ask some questions and suggest issues to create.
updatedRoots = append(updatedRoots, commitment.UpdatedRoot) | ||
totalTxs += len(commitment.Txs) | ||
|
||
// TODO cleanup |
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.
Do we want to create an issue that adds an AggregatedSignature wrapper with a method like ToSol()
?
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.
rollupAddress := ethCmn.HexToAddress(config.GlobalCfg.RollupAddress) | ||
stakeAmount := big.NewInt(0) | ||
|
||
// TODO fix |
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.
What's the thing we want to fix here? Is it adding a feeReceiver to the config?
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.
Right now I have added 0 as fee receiver to fix build but we need to replace that with the correct one.
Lets talk here: #47
return nil | ||
} | ||
|
||
func (b *Bazooka) GenerateAuthObj(client *ethclient.Client, callMsg ethereum.CallMsg) (auth *bind.TransactOpts, err error) { | ||
func (b *Bazooka) generateAuthObj(client *ethclient.Client, callMsg ethereum.CallMsg) (auth *bind.TransactOpts, err error) { |
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 change the MixCaps to camelCase here, is the intention that we don't want to export generateAuthObj in the package?
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.
Bingo!
b.log.Info("Batch prepared", "totalTransactions", totalTxs) | ||
|
||
rollupAddress := ethCmn.HexToAddress(config.GlobalCfg.RollupAddress) | ||
stakeAmount := big.NewInt(0) |
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 should create an issue to make stakeAmount configurable too.
Fixes #34