From d90c6ab2b2593344a8e2775cb807abcaa0eaf4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=96=B0=E5=88=9A?= <719802264@qq.com> Date: Wed, 3 Feb 2021 00:13:45 +0800 Subject: [PATCH] update modifier --- 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 c546211..ec4e526 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) canTransfer { + ) internal balanceEnough(from, _amount) canTransfer { require(from != address(0), "transfer from the zero address"); require(to != address(0), "transfer to the zero address");