Skip to content

Commit

Permalink
contract typo
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Jan 25, 2024
1 parent 1d9f1f2 commit 7247b54
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions contracts/v2/PolygonZkEVMBridgeV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ contract PolygonZkEVMBridgeV2 is
* @param smtProofLocalExitRoot Smt proof to proof the leaf agains the exit root
* @param smtProofRollupExitRoot Smt proof to proof the rollupLocalExitRoot agains the RollupExitRoot
* @param globalIndex Global index is defined as:
* [0:190] not checked, [191] mainnet flag, rollupIndex [192, 223], localRootIndex[224, 255]
* | 191 bits | 1 bit | 32 bits | 32 bits |
* | 0 | mainnetFlag | rollupIndex | localRootIndex |
* note that only the rollup index will be used only in case the mainnet flag is 0
* note that global index do not assert the unused bits to 0.
* This means that when synching the events, the globalIndex must be decoded the same way that in the Smart contract
Expand Down Expand Up @@ -573,7 +574,8 @@ contract PolygonZkEVMBridgeV2 is
* @param smtProofLocalExitRoot Smt proof to proof the leaf agains the exit root
* @param smtProofRollupExitRoot Smt proof to proof the rollupLocalExitRoot agains the RollupExitRoot
* @param globalIndex Global index is defined as:
* [0:190] not checked, [191] mainnet flag, rollupIndex [192, 223], localRootIndex [224, 255]
* | 191 bits | 1 bit | 32 bits | 32 bits |
* | 0 | mainnetFlag | rollupIndex | localRootIndex |
* note that only the rollup index will be used only in case the mainnet flag is 0
* note that global index do not assert the unused bits to 0.
* This means that when synching the events, the globalIndex must be decoded the same way that in the Smart contract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import "../../lib/PolygonRollupBaseEtrog.sol";
* The aggregators will be able to verify the sequenced state with zkProofs and therefore make available the withdrawals from L2 network.
* To enter and exit of the L2 network will be used a PolygonZkEVMBridge smart contract that will be deployed in both networks.
*/
contract PolygonZkEVMVEtrog is PolygonRollupBaseEtrog {
contract PolygonZkEVMEtrog is PolygonRollupBaseEtrog {
/**
* @param _globalExitRootManager Global exit root manager address
* @param _pol POL token address
Expand Down
2 changes: 1 addition & 1 deletion deployment/v2/4_createRollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function main() {
await rollupManagerContract.grantRole(CREATE_ROLLUP_ROLE, deployer.address);

// Create zkEVM implementation
const PolygonZKEVMV2Factory = await ethers.getContractFactory("PolygonZkEVMV2");
const PolygonZKEVMV2Factory = await ethers.getContractFactory("PolygonZkEVMEtrog");
const PolygonZKEVMV2Contract = await PolygonZKEVMV2Factory.deploy(
deployOutput.polygonZkEVMGlobalExitRootAddress,
deployOutput.polTokenAddress,
Expand Down
8 changes: 4 additions & 4 deletions test/contractsv2/PolygonRollupManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
PolygonZkEVMGlobalExitRootV2,
PolygonZkEVMBridgeV2,
PolygonZkEVMV2,
PolygonZkEVMVEtrog,
PolygonZkEVMEtrog,
PolygonRollupBase,
PolygonRollupBaseEtrog,
TokenWrapped,
Expand Down Expand Up @@ -916,7 +916,7 @@ describe("Polygon ZK-EVM TestnetV2", () => {
// In order to create a new rollup type, create an implementation of the contract

// Create zkEVM implementation
const PolygonZKEVMV2Factory = await ethers.getContractFactory("PolygonZkEVMVEtrog");
const PolygonZKEVMV2Factory = await ethers.getContractFactory("PolygonZkEVMEtrog");
const PolygonZKEVMV2Contract = await PolygonZKEVMV2Factory.deploy(
polygonZkEVMGlobalExitRoot.target,
polTokenContract.target,
Expand Down Expand Up @@ -1055,7 +1055,7 @@ describe("Polygon ZK-EVM TestnetV2", () => {
nonce: 1,
});

const newZkEVMContract = PolygonZKEVMV2Factory.attach(newZKEVMAddress) as PolygonZkEVMVEtrog;
const newZkEVMContract = PolygonZKEVMV2Factory.attach(newZKEVMAddress) as PolygonZkEVMEtrog;
const newSequencedBatch = 1;

await expect(
Expand Down Expand Up @@ -2678,7 +2678,7 @@ describe("Polygon ZK-EVM TestnetV2", () => {
// In order to update a new rollup type, create an implementation of the contract

// Create zkEVM implementation
const PolygonZKEVMEtrogFactory = await ethers.getContractFactory("PolygonZkEVMVEtrog");
const PolygonZKEVMEtrogFactory = await ethers.getContractFactory("PolygonZkEVMEtrog");
const PolygonZKEVMEtrogContract = await PolygonZKEVMEtrogFactory.deploy(
polygonZkEVMGlobalExitRoot.target,
polTokenContract.target,
Expand Down

0 comments on commit 7247b54

Please sign in to comment.