-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use encodeCall before calling innerHandleOp
just using encodeCall saves gas
- Loading branch information
1 parent
98e6a95
commit f72fa45
Showing
3 changed files
with
47 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.12; | ||
|
||
import "./UserOperation.sol"; | ||
|
||
interface IAccountExecute { | ||
/** | ||
* Account MAY implement this execute method. | ||
* passing this methodSig as callData will cause the entryPoint to pass the full UserOp (and hash) | ||
* to the account. | ||
* @param userOp - The operation that was just validated. | ||
* @param userOpHash - Hash of the user's request data. | ||
*/ | ||
function executeUserOp( | ||
UserOperation calldata userOp, | ||
bytes32 userOpHash | ||
) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters