Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(protocol): fix genesis tests and add minor changes #15741

Merged
merged 13 commits into from
Feb 13, 2024
2 changes: 1 addition & 1 deletion .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: protocol - Deploy L1 Contracts
working-directory: ./packages/protocol
run: |
anvil &
anvil --hardfork cancun &
while ! nc -z localhost 8545; do
sleep 1
done
Expand Down
6 changes: 2 additions & 4 deletions packages/protocol/contracts/L1/libs/LibProving.sol
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ library LibProving {
metaHash: blk.metaHash,
blobHash: meta.blobHash,
// TODO(Brecht): Quite limiting this is required to be the same address as
// msg.sender,
// less flexibility on the prover's side for proof generation/proof submission
// using
// multiple accounts.
// msg.sender, less flexibility on the prover's side for proof generation/proof
// submission using multiple accounts.
// Added msgSender to allow the prover to be any address in the future.
prover: msg.sender,
msgSender: msg.sender,
Expand Down
2 changes: 0 additions & 2 deletions packages/protocol/contracts/L1/provers/GuardianProver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import "./Guardians.sol";

/// @title GuardianProver
contract GuardianProver is Guardians {
error PROVING_FAILED();

/// @notice Initializes the contract with the provided address manager.
/// @param _addressManager The address of the address manager contract.
function init(address _addressManager) external initializer {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/script/DeployOnL1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ contract DeployOnL1 is DeployCapability {
});

address[] memory plonkVerifiers = new address[](1);
plonkVerifiers[0] = deployPseZkEvmVerifier("contracts/L1/verifiers/PlonkVerifier.yulp");
plonkVerifiers[0] = deployPseZkEvmVerifier("contracts/verifiers/PlonkVerifier.yulp");

for (uint16 i = 0; i < plonkVerifiers.length; ++i) {
register(
Expand Down
5 changes: 0 additions & 5 deletions packages/protocol/utils/generate_genesis/taikoL2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ async function generateContractConfigs(
_initialized: 1,
_initializing: false,
// ReentrancyGuardUpgradeable
_reentry: 1, // _FALSE
_paused: 1, // _FALSE
// Ownable2Upgradeable
_owner: ownerSecurityCouncil,
Expand Down Expand Up @@ -331,7 +330,6 @@ async function generateContractConfigs(
_initialized: 1,
_initializing: false,
// ReentrancyGuardUpgradeable
_reentry: 1, // _FALSE
_paused: 1, // _FALSE
// Ownable2Upgradeable
_owner: ownerSecurityCouncil,
Expand Down Expand Up @@ -366,7 +364,6 @@ async function generateContractConfigs(
_initialized: 1,
_initializing: false,
// ReentrancyGuardUpgradeable
_reentry: 1, // _FALSE
_paused: 1, // _FALSE
// Ownable2Upgradeable
_owner: ownerSecurityCouncil,
Expand Down Expand Up @@ -401,7 +398,6 @@ async function generateContractConfigs(
_initialized: 1,
_initializing: false,
// ReentrancyGuardUpgradeable
_reentry: 1, // _FALSE
_paused: 1, // _FALSE
// Ownable2Upgradeable
_owner: ownerSecurityCouncil,
Expand Down Expand Up @@ -460,7 +456,6 @@ async function generateContractConfigs(
_initialized: 1,
_initializing: false,
// ReentrancyGuardUpgradeable
_reentry: 1, // _FALSE
_paused: 1, // _FALSE
// Ownable2Upgradeable
_owner: ownerSecurityCouncil,
Expand Down
Loading