Skip to content

Commit

Permalink
fix: wallet tokens receiver functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kostyamospan committed May 31, 2024
1 parent aa94e87 commit 7c7180d
Show file tree
Hide file tree
Showing 9 changed files with 686 additions and 25 deletions.
5 changes: 5 additions & 0 deletions contracts/SmartWalletV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable
import "@openzeppelin/contracts-upgradeable/utils/NoncesUpgradeable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/utils/ERC721HolderUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/utils/ERC1155HolderUpgradeable.sol";

import "./libraries/EnumerableMap.sol";
import "./libraries/UniswapV3Actions.sol";
import "./interfaces/IWeth.sol";
Expand All @@ -22,6 +25,8 @@ import "hardhat/console.sol";
contract SmartWalletV1 is
OwnableUpgradeable,
EIP712Upgradeable,
ERC721HolderUpgradeable,
ERC1155HolderUpgradeable,
NoncesUpgradeable,
ISmartWallet
{
Expand Down
2 changes: 1 addition & 1 deletion contracts/integration/NftRent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ contract NftRent is ERC721Holder, IAutoExecuteCallback {
}

function rent(bytes32 id) external payable returns (address smartWallet) {
bytes32 walletSalt = keccak256(abi.encodePacked(msg.sender));
bytes32 walletSalt = keccak256(abi.encodePacked(msg.sender, id));
smartWallet = ISmartWalletFactory(smartWalletFactory).create2Wallet(
msg.sender,
address(this),
Expand Down
2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 7c7180d

Please sign in to comment.