Skip to content
Merged
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
5 changes: 2 additions & 3 deletions src/accounts/LibERC7579.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ library LibERC7579 {
assembly {
mstore(0x00, callType)
mstore(0x01, execType)
mstore(0x02, selector)
mstore(0x06, 0)
mstore(0x06, selector)
mstore(0x0a, payload)
result := mload(0x00)
}
Expand All @@ -64,7 +63,7 @@ library LibERC7579 {

/// @dev Returns the selector of the mode.
function getSelector(bytes32 mode) internal pure returns (bytes4) {
return bytes4(bytes32(uint256(mode) << 16));
return bytes4(bytes32(uint256(mode) << 48));
}

/// @dev Returns the payload stored in the mode.
Expand Down
Loading