Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,24 @@ library OptionsBuilder {
return addExecutorOption(_options, ExecutorOptions.OPTION_TYPE_LZCOMPOSE, option);
}

/**
* @dev Adds an executor LZ read option to the existing options.
* @param _options The existing options container.
* @param _gas The gasLimit used for the lzRead operation.
* @param _calldataSize The size limit for the lzRead operation.
* @param _value The msg.value passed for the lzRead operation.
* @return options The updated options container.
*/
function addExecutorLzReadOption(
bytes memory _options,
uint128 _gas,
uint32 _calldataSize,
uint128 _value
) internal pure onlyType3(_options) returns (bytes memory) {
bytes memory option = ExecutorOptions.encodeLzReadOption(_gas, _calldataSize, _value);
return addExecutorOption(_options, ExecutorOptions.OPTION_TYPE_LZREAD, option);
}

/**
* @dev Adds an executor ordered execution option to the existing options.
* @param _options The existing options container.
Expand Down