Skip to content

Commit

Permalink
Fixed args to submit batch during gas estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavchellani committed Oct 30, 2020
1 parent 1f13b09 commit 38964e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/bazooka.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,14 @@ func (b *Bazooka) SubmitBatch(commitments []Commitment) error {
rollupAddress := ethCmn.HexToAddress(config.GlobalCfg.RollupAddress)
stakeAmount := big.NewInt(0)

// TODO fix
var feeReceivers []*big.Int
dummyReceivers := big.NewInt(0)
feeReceivers = append(feeReceivers, dummyReceivers)

switch txType := commitments[0].BatchType; txType {
case TX_TRANSFER_TYPE:
data, err := b.ContractABI[common.ROLLUP_CONTRACT_KEY].Pack("submitTransfer", txs, updatedRoots, uint8(commitments[0].BatchType), aggregatedSig)
data, err := b.ContractABI[common.ROLLUP_CONTRACT_KEY].Pack("submitTransfer", updatedRoots, aggregatedSig, feeReceivers, txs)
if err != nil {
b.log.Error("Error packing data for submitBatch", "err", err)
return err
Expand Down

0 comments on commit 38964e8

Please sign in to comment.