Skip to content

Commit

Permalink
Fix for integration test. (#1971)
Browse files Browse the repository at this point in the history
Co-authored-by: StefanIliev545 <[email protected]>
  • Loading branch information
StefanIliev545 and StefanIliev545 authored Jun 27, 2024
1 parent 186bc2c commit 0dc7d5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/src/management/ManagementContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ contract ManagementContract is Initializable, OwnableUpgradeable {
function initialize() public initializer {
__Ownable_init(msg.sender);
lastBatchSeqNo = 0;
rollups.nextFreeSequenceNumber = 0; //redundant as the default is 0, but for clarity
rollups.nextFreeSequenceNumber = 1; // rollup 0 == nil hash
merkleMessageBus = new MerkleTreeMessageBus.MerkleTreeMessageBus();
messageBus = MessageBus.IMessageBus(address(merkleMessageBus));

Expand Down
2 changes: 1 addition & 1 deletion go/host/l1/statemachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (c *crossChainStateMachine) PublishNextBundle() error {
}

// Get the bundle range from the management contract
nextForkUID, begin, end, err := c.publisher.GetBundleRangeFromManagementContract(big.NewInt(0).SetUint64(c.currentRollup), c.latestRollup.ForkUID)
nextForkUID, begin, end, err := c.publisher.GetBundleRangeFromManagementContract(big.NewInt(0).SetUint64(c.currentRollup), c.rollupHistory[c.currentRollup].ForkUID)
if err != nil {
return err
}
Expand Down

0 comments on commit 0dc7d5c

Please sign in to comment.