Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kelemeno committed Jan 24, 2024
1 parent 5885161 commit c5fbdd7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ import {VerifierParams} from "./IVerifier.sol";
import "../libraries/Diamond.sol";

interface IZkSyncStateTransition is IAdmin, IExecutor, IGetters, IMailbox {
function initialize(
uint256 _chainId,
address _bridgehubChainContract,
address _governor,
Verifier _verifier,
VerifierParams calldata _verifierParams,
bytes32 _l2BootloaderBytecodeHash,
bytes32 _l2DefaultAccountBytecodeHash,
bytes32 _storedBatchZero,
uint256 _priorityTxMaxGasLimit
) external;

// KL todo: need this in the server for now
event ProposeTransparentUpgrade(
Expand Down
2 changes: 1 addition & 1 deletion l1-contracts/scripts/register-hyperchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function main() {
await deployer.registerToken(baseTokenAddress);
}

await deployer.registerHyperchain(baseTokenAddress, create2Salt, null, gasPrice);
await deployer.registerHyperchain(baseTokenAddress, null, gasPrice);
});

await program.parseAsync(process.argv);
Expand Down
4 changes: 2 additions & 2 deletions l1-contracts/src.ts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class Deployer {
};

const diamondInitCalldata = DiamondInit.encodeFunctionData("initialize", [
// these first 7 values are set in the contract
// these first values are set in the contract
{
chainId: "0x0000000000000000000000000000000000000000000000000000000000000001",
bridgehub: "0x0000000000000000000000000000000000001234",
Expand All @@ -131,7 +131,7 @@ export class Deployer {
return diamondCut(
facetCuts,
this.addresses.StateTransition.DiamondInit,
"0x" + diamondInitCalldata.slice(2 + 292 * 2)
"0x" + diamondInitCalldata.slice(2 + (4+9*32) * 2)
);
}

Expand Down

0 comments on commit c5fbdd7

Please sign in to comment.