Skip to content

Commit ddf5fd5

Browse files
committed
zkEVM update fixed code block
1 parent 7027b25 commit ddf5fd5

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

docs/zkEVM/architecture/high-level/unified-LxLy/lxly-bridge.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,20 @@ The governance contract oversees consensus mechanisms and verifiers that can be
8686
The [rollup manager contract](https://github.com/0xPolygonHermez/zkevm-contracts/blob/feature/v2ForkID5/contracts/v2/PolygonRollupManager.sol) has the relevant function for adding a new rollup:
8787

8888
```bash
89-
function addNewRollupType(
90-
address consensusImplementation,
91-
IVerifierRollup verifier,
92-
uint64 forkID,
93-
bytes32 genesis,
94-
uint8 rollupCompatibilityID,
95-
string memory description
96-
) ...
89+
function createNewRollup(
90+
uint32 rollupTypeID,
91+
uint64 chainID,
92+
address admin,
93+
address sequencer,
94+
address gasTokenAddress,
95+
uint32 gasTokenNetwork,
96+
string memory sequencerURL,
97+
string memory networkName
98+
) external onlyRole(_CREATE_ROLLUP_ROLE) {
99+
// Check that rollup type exists
100+
if (rollupTypeID == 0 || rollupTypeID > rollupTypeCount) {
101+
revert RollupTypeDoesNotExist();
102+
}
97103
```
98104
99105
- To create and connect a rollup to the LxLy bridge,

0 commit comments

Comments
 (0)