@@ -25,7 +25,7 @@ import {IConfidentialFungibleToken} from "./../interfaces/IConfidentialFungibleT
2525abstract contract VestingWalletConfidential is OwnableUpgradeable , ReentrancyGuardTransient {
2626 /// @custom:storage-location erc7201:openzeppelin.storage.VestingWalletConfidential
2727 struct VestingWalletStorage {
28- mapping (address token = > euint64 ) _tokenReleased;
28+ mapping (address token = > euint128 ) _tokenReleased;
2929 uint64 _start;
3030 uint64 _duration;
3131 }
@@ -53,7 +53,7 @@ abstract contract VestingWalletConfidential is OwnableUpgradeable, ReentrancyGua
5353 }
5454
5555 /// @dev Amount of token already released
56- function released (address token ) public view virtual returns (euint64 ) {
56+ function released (address token ) public view virtual returns (euint128 ) {
5757 return _getVestingWalletStorage ()._tokenReleased[token];
5858 }
5959
@@ -75,7 +75,7 @@ abstract contract VestingWalletConfidential is OwnableUpgradeable, ReentrancyGua
7575 FHE.allowTransient (amount, token);
7676 euint64 amountSent = IConfidentialFungibleToken (token).confidentialTransfer (owner (), amount);
7777
78- euint64 newReleasedAmount = FHE.add (released (token), amountSent);
78+ euint128 newReleasedAmount = FHE.add (released (token), amountSent);
7979 FHE.allow (newReleasedAmount, owner ());
8080 FHE.allowThis (newReleasedAmount);
8181 _getVestingWalletStorage ()._tokenReleased[token] = newReleasedAmount;
0 commit comments