Skip to content

Commit

Permalink
import bytecode differently
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Sep 23, 2024
1 parent bc04c53 commit 010ed90
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions l1-contracts/src.ts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ import { ICTMDeploymentTrackerFactory } from "../typechain/ICTMDeploymentTracker
import { TestnetERC20TokenFactory } from "../typechain/TestnetERC20TokenFactory";

import { RollupL1DAValidatorFactory } from "../../da-contracts/typechain/RollupL1DAValidatorFactory";
import { ValidiumL1DAValidatorFactory } from "../typechain/ValidiumL1DAValidatorFactory";

let L2_BOOTLOADER_BYTECODE_HASH: string;
let L2_DEFAULT_ACCOUNT_BYTECODE_HASH: string;
Expand Down Expand Up @@ -295,8 +294,8 @@ export class Deployer {
let factory;
if (contractName == "RollupL1DAValidator") {
factory = new RollupL1DAValidatorFactory(this.deployWallet);
} else if (contractName == "ValidiumL1DAValidator") {
factory = new ValidiumL1DAValidatorFactory(this.deployWallet);
} else {
throw new Error(`Unknown DA contract name ${contractName}`);
}
return factory.getDeployTransaction().data;
}
Expand Down Expand Up @@ -1755,14 +1754,12 @@ export class Deployer {
if (this.verbose) {
console.log(`CONTRACTS_L1_ROLLUP_DA_VALIDATOR=${rollupDAValidatorAddress}`);
}
const validiumValidatorBytecode = await this.loadFromDAFolder("ValidiumL1DAValidator");
const validiumDAValidatorAddress = await this.deployViaCreate2(
"ValidiumL1DAValidator",
[],
create2Salt,
ethTxOptions,
undefined,
validiumValidatorBytecode
undefined
);

if (this.verbose) {
Expand Down

0 comments on commit 010ed90

Please sign in to comment.