From e710b243d7eed78a76b392d8af9ad4731eb3caaa Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 25 Oct 2019 14:13:43 +0300 Subject: [PATCH] change error text --- contracts/ERC20Mixer.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/ERC20Mixer.sol b/contracts/ERC20Mixer.sol index 9dfed90..8c44ac7 100644 --- a/contracts/ERC20Mixer.sol +++ b/contracts/ERC20Mixer.sol @@ -51,7 +51,7 @@ contract ERC20Mixer is Mixer { if (data.length > 0) { require(data.length == 32, "data length should be either 0 or 32 bytes"); success = abi.decode(data, (bool)); - require(success, "not enough allowed tokens"); + require(success, "not enough allowed tokens. Token returns false."); } } @@ -63,7 +63,7 @@ contract ERC20Mixer is Mixer { if (data.length > 0) { require(data.length == 32, "data length should be either 0 or 32 bytes"); success = abi.decode(data, (bool)); - require(success, "not enough tokens"); + require(success, "not enough tokens. Token returns false."); } } }