Do not emit Approval event when calling transferFrom (#4370)
Co-authored-by: Ernesto García <ernestognw@gmail.com> Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
10
contracts/mocks/token/ERC20ApprovalMock.sol
Normal file
10
contracts/mocks/token/ERC20ApprovalMock.sol
Normal file
@ -0,0 +1,10 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "../../token/ERC20/ERC20.sol";
|
||||
|
||||
abstract contract ERC20ApprovalMock is ERC20 {
|
||||
function _approve(address owner, address spender, uint256 amount, bool) internal virtual override {
|
||||
super._approve(owner, spender, amount, true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user