From 70d00a5c0afcf329cfc88989eff962a73f7c1c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=96=B0=E5=88=9A?= <719802264@qq.com> Date: Tue, 2 Feb 2021 15:01:28 +0800 Subject: [PATCH] add canTransfer --- contracts/DODOToken/vDODOToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/DODOToken/vDODOToken.sol b/contracts/DODOToken/vDODOToken.sol index ce6f437..a143596 100644 --- a/contracts/DODOToken/vDODOToken.sol +++ b/contracts/DODOToken/vDODOToken.sol @@ -333,7 +333,7 @@ contract vDODOToken is InitializableOwnable, ReentrancyGuard { address from, address to, uint256 _amount - ) internal balanceEnough(msg.sender, _amount) { + ) internal balanceEnough(msg.sender, _amount) canTransfer { require(from != address(0), "transfer from the zero address"); require(to != address(0), "transfer to the zero address");