Skip to content

Commit a5f6d9f

Browse files
authored
audit: remove payable execute function (#415)
1 parent f58eda5 commit a5f6d9f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

solidity/src/processor/LiteProcessor.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ contract LiteProcessor is IMessageRecipient, ProcessorBase {
6464
* @notice Handles incoming messages from an authorized addresses
6565
* @param _body The message payload
6666
*/
67-
function execute(bytes calldata _body) external payable override {
67+
function execute(bytes calldata _body) external override {
6868
// Verify sender is authorized address
6969
require(authorizedAddresses[msg.sender], ProcessorErrors.UnauthorizedAccess());
7070

solidity/src/processor/Processor.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ contract Processor is IMessageRecipient, ProcessorBase {
5858
* @notice Handles incoming messages from an authorized addresses
5959
* @param _body The message payload
6060
*/
61-
function execute(bytes calldata _body) external payable override {
61+
function execute(bytes calldata _body) external override {
6262
// TODO: Implement the execute function
6363
}
6464
}

solidity/src/processor/ProcessorBase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ abstract contract ProcessorBase is Ownable {
6464
* @notice Handles incoming messages from an authorized addresses
6565
* @param _body The message payload
6666
*/
67-
function execute(bytes calldata _body) external payable virtual;
67+
function execute(bytes calldata _body) external virtual;
6868

6969
/**
7070
* @notice Handles pause messages

0 commit comments

Comments
 (0)