Skip to content

Commit

Permalink
added fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed Feb 13, 2025
1 parent 6fdff83 commit aa0309c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/samples/Simple7702Account.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ contract Simple7702Account is BaseAccount, IERC165, IERC1271, ERC1155Holder, ERC

// temporary address of entryPoint v0.8
function entryPoint() public pure override returns (IEntryPoint) {
return IEntryPoint(0xe5fDb4B271ef97F075cFDB9713f8cff6Dbf5F325);
return IEntryPoint(0x85fF6c675397CF96412c217e405F2175c249a6B2);
}

/**
Expand Down Expand Up @@ -77,6 +77,10 @@ contract Simple7702Account is BaseAccount, IERC165, IERC1271, ERC1155Holder, ERC
return ECDSA.recover(hash, signature) == address(this) ? this.isValidSignature.selector : bytes4(0);
}

// accept incoming calls (with our without value), to mimic an EOA.
fallback() external payable {
}

receive() external payable {
}
}

0 comments on commit aa0309c

Please sign in to comment.