Use ERC20._spendAllowance in CustomToken
SKYBITDev3 opened this issue · 0 comments
SKYBITDev3 commented
Can the code
axelar-examples/examples/evm/its-custom-token/CustomToken.sol
Lines 82 to 88 in 1c8c8fa
be replaced by
function _spendAllowance(address sender, address spender, uint256 amount) internal override (ERC20, InterchainTokenStandard) {
ERC20._spendAllowance(sender, spender, amount);
}
?
Or was there a reason not to use the built-in _spendAllowance
in ERC20
?