Skip to content

Commit

Permalink
chore: sort errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0dot committed May 29, 2024
1 parent 85bb117 commit f73ef69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/BaseLightAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ abstract contract BaseLightAccount is BaseAccount, TokenCallbackHandler, UUPSUpg
}

error ArrayLengthMismatch();
error CreateFailed();
error InvalidSignatureType();
error NotAuthorized(address caller);
error ZeroAddressNotAllowed();
error CreateFailed();

modifier onlyAuthorized() {
_onlyAuthorized();
Expand Down Expand Up @@ -89,7 +89,7 @@ abstract contract BaseLightAccount is BaseAccount, TokenCallbackHandler, UUPSUpg
/// 5. If creation failed (the address returned is zero), revert with CreateFailed().
function create(bytes calldata initCode, uint256 value) external payable virtual onlyAuthorized returns (address createdAddr) {
assembly ("memory-safe") {

let fmp := mload(0x40)
let len := initCode.length
calldatacopy(fmp, initCode.offset, len)
Expand Down

0 comments on commit f73ef69

Please sign in to comment.