Skip to content

Commit

Permalink
TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Feb 5, 2024
1 parent d2b9972 commit 5a14152
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
1 change: 1 addition & 0 deletions contracts/v2/utils/ClaimCompressor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ contract ClaimCompressor {
function sendCompressedClaims(
bytes calldata compressedClaimCalls
) external {
// TODO get metadata tokens ( max len metadata)
// TODO first rollupExitRoot, instead of zeroes, could be zero hashes, Codecopy?¿

// Load "dynamic" constant and immutables since are not accesible from assembly
Expand Down
39 changes: 18 additions & 21 deletions deployment/v2/verifyContracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async function main() {

// verify zkEVM address or validium

if (createRollupOutputParameters.consensusContract == "PolygonZkEVMEtrog") {
if (createRollupOutputParameters.consensusContract === 'PolygonZkEVMEtrog') {
try {
await hre.run(
'verify:verify',
Expand All @@ -186,28 +186,25 @@ async function main() {
} catch (error) {
// expect(error.message.toLowerCase().includes('proxyadmin')).to.be.equal(true);
}
} else {
if(createRollupOutputParameters.consensusContract == "PolygonValidiumEtrog") {
try {
await hre.run(
'verify:verify',
{
contract: 'contracts/v2/consensus/validium/PolygonValidiumEtrog.sol:PolygonValidiumEtrog',
address: createRollupOutputParameters.rollupAddress,
constructorArguments: [
deployOutputParameters.polygonZkEVMGlobalExitRootAddress,
deployOutputParameters.polTokenAddress,
deployOutputParameters.polygonZkEVMBridgeAddress,
deployOutputParameters.polygonRollupManager,
],
},
);
} catch (error) {
// expect(error.message.toLowerCase().includes('proxyadmin')).to.be.equal(true);
}
} else if (createRollupOutputParameters.consensusContract === 'PolygonValidiumEtrog') {
try {
await hre.run(
'verify:verify',
{
contract: 'contracts/v2/consensus/validium/PolygonValidiumEtrog.sol:PolygonValidiumEtrog',
address: createRollupOutputParameters.rollupAddress,
constructorArguments: [
deployOutputParameters.polygonZkEVMGlobalExitRootAddress,
deployOutputParameters.polTokenAddress,
deployOutputParameters.polygonZkEVMBridgeAddress,
deployOutputParameters.polygonRollupManager,
],
},
);
} catch (error) {
// expect(error.message.toLowerCase().includes('proxyadmin')).to.be.equal(true);
}
}

}

main()
Expand Down

0 comments on commit 5a14152

Please sign in to comment.