From fcab2fa7a6b42991d4441d6529e65c965836de36 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Thu, 19 Dec 2024 19:00:03 +0300 Subject: [PATCH] fix: remove fallback functions (#26) --- contracts/nft/contracts/evm/UniversalNFT.sol | 6 ++---- contracts/token/contracts/evm/UniversalToken.sol | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/contracts/nft/contracts/evm/UniversalNFT.sol b/contracts/nft/contracts/evm/UniversalNFT.sol index 6f68cae..08413de 100644 --- a/contracts/nft/contracts/evm/UniversalNFT.sol +++ b/contracts/nft/contracts/evm/UniversalNFT.sol @@ -157,10 +157,6 @@ contract UniversalNFT is emit TokenTransferReverted(sender, tokenId, uri); } - receive() external payable {} - - fallback() external payable {} - // The following functions are overrides required by Solidity. function _update( @@ -211,4 +207,6 @@ contract UniversalNFT is function _authorizeUpgrade( address newImplementation ) internal override onlyOwner {} + + receive() external payable {} } diff --git a/contracts/token/contracts/evm/UniversalToken.sol b/contracts/token/contracts/evm/UniversalToken.sol index 348499c..b61227c 100644 --- a/contracts/token/contracts/evm/UniversalToken.sol +++ b/contracts/token/contracts/evm/UniversalToken.sol @@ -128,11 +128,9 @@ contract UniversalToken is emit TokenTransferReverted(receiver, amount); } - receive() external payable {} - - fallback() external payable {} - function _authorizeUpgrade( address newImplementation ) internal override onlyOwner {} + + receive() external payable {} }