Skip to content

Commit

Permalink
Update TaikoL1.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Feb 25, 2024
1 parent 00a86da commit ee3a5c1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ contract TaikoL1 is EssentialContract, ITaikoL1, ITierProvider, TaikoEvents, Tai
{
TaikoData.Config memory config = getConfig();

(meta, depositsProcessed) =
LibProposing.proposeBlock(state, config, AddressResolver(this), params, txList);
(meta, depositsProcessed) = LibProposing.proposeBlock(state, config, this, params, txList);

if (!state.slotB.provingPaused) {
_verifyBlocks(config, config.maxBlocksToVerifyPerProposal);
Expand All @@ -98,8 +97,7 @@ contract TaikoL1 is EssentialContract, ITaikoL1, ITierProvider, TaikoEvents, Tai

TaikoData.Config memory config = getConfig();

uint8 maxBlocksToVerify =
LibProving.proveBlock(state, config, AddressResolver(this), meta, tran, proof);
uint8 maxBlocksToVerify = LibProving.proveBlock(state, config, this, meta, tran, proof);

_verifyBlocks(config, maxBlocksToVerify);
}
Expand All @@ -120,7 +118,7 @@ contract TaikoL1 is EssentialContract, ITaikoL1, ITierProvider, TaikoEvents, Tai
/// @param recipient Address of the recipient for the deposited Ether on
/// Layer 2.
function depositEtherToL2(address recipient) external payable nonReentrant whenNotPaused {
LibDepositing.depositEtherToL2(state, getConfig(), AddressResolver(this), recipient);
LibDepositing.depositEtherToL2(state, getConfig(), this, recipient);
}

function unpause() public override {
Expand Down Expand Up @@ -252,7 +250,7 @@ contract TaikoL1 is EssentialContract, ITaikoL1, ITierProvider, TaikoEvents, Tai
internal
whenProvingNotPaused
{
LibVerifying.verifyBlocks(state, config, AddressResolver(this), maxBlocksToVerify);
LibVerifying.verifyBlocks(state, config, this, maxBlocksToVerify);
}

function _authorizePause(address)
Expand Down

0 comments on commit ee3a5c1

Please sign in to comment.