Skip to content

Commit

Permalink
feat: make newBlockProposal payable and forward eth to Taiko
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshuJalan committed Jun 21, 2024
1 parent 86894b9 commit b0a77f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SmartContracts/src/avs/PreconfTaskManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contract PreconfTaskManager is IPreconfTaskManager {
bytes calldata txList,
uint256 lookaheadPointer,
IPreconfTaskManager.LookaheadSetParam[] calldata lookaheadSetParams
) external {
) external payable {
uint256 currentEpochTimestamp = _getEpochTimestamp();
address randomPreconfer = randomPreconfers[currentEpochTimestamp];

Expand Down Expand Up @@ -128,7 +128,7 @@ contract PreconfTaskManager is IPreconfTaskManager {
preconfServiceManager.lockStakeUntil(msg.sender, block.timestamp + DISPUTE_PERIOD);

// Forward the block to Taiko's L1 contract
taikoL1.proposeBlock(blockParams, txList);
taikoL1.proposeBlock{value: msg.value}(blockParams, txList);
}

function proveIncorrectPreconfirmation(PreconfirmationHeader memory header, bytes memory signature) external {}
Expand Down
2 changes: 1 addition & 1 deletion SmartContracts/src/interfaces/IPreconfTaskManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ interface IPreconfTaskManager {
bytes calldata txList,
uint256 lookaheadHint,
LookaheadSetParam[] calldata lookaheadSetParams
) external;
) external payable;

/// @dev Slashes a preconfer if the txn and ordering in a signed preconf does not match the actual block
function proveIncorrectPreconfirmation(PreconfirmationHeader memory header, bytes memory signature) external;
Expand Down

0 comments on commit b0a77f9

Please sign in to comment.