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
2 changes: 2 additions & 0 deletions contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,15 @@ abstract contract ERC7984ERC20Wrapper is ERC7984, IERC1363Receiver {
}
}

/// @inheritdoc ERC7984
function _update(address from, address to, euint64 amount) internal virtual override returns (euint64) {
if (from == address(0)) {
_checkConfidentialTotalSupply();
}
return super._update(from, to, amount);
}

/// @dev Internal logic for handling the creation of unwrap requests.
function _unwrap(address from, address to, euint64 amount) internal virtual {
require(to != address(0), ERC7984InvalidReceiver(to));
require(from == msg.sender || isOperator(from, msg.sender), ERC7984UnauthorizedSpender(from, msg.sender));
Expand Down
Loading