Skip to content

Commit b2122eb

Browse files
committed
Add extension that emits erc20 events for etherscan visibility
1 parent a2623d8 commit b2122eb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-License-Identifier: MIT
2+
pragma solidity ^0.8.26;
3+
4+
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
5+
6+
import {ConfidentialFungibleToken, euint64} from "../ConfidentialFungibleToken.sol";
7+
8+
abstract contract ConfidentialFungibleTokenERC20Like is ConfidentialFungibleToken {
9+
function _update(address from, address to, euint64 amount) internal virtual override returns (euint64) {
10+
emit IERC20.Transfer(from, to, 0);
11+
return super._update(from, to, amount);
12+
}
13+
}

0 commit comments

Comments
 (0)