mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-12-25 14:29:22 -05:00
change error text
This commit is contained in:
parent
35f4b031f4
commit
e710b243d7
@ -51,7 +51,7 @@ contract ERC20Mixer is Mixer {
|
|||||||
if (data.length > 0) {
|
if (data.length > 0) {
|
||||||
require(data.length == 32, "data length should be either 0 or 32 bytes");
|
require(data.length == 32, "data length should be either 0 or 32 bytes");
|
||||||
success = abi.decode(data, (bool));
|
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) {
|
if (data.length > 0) {
|
||||||
require(data.length == 32, "data length should be either 0 or 32 bytes");
|
require(data.length == 32, "data length should be either 0 or 32 bytes");
|
||||||
success = abi.decode(data, (bool));
|
success = abi.decode(data, (bool));
|
||||||
require(success, "not enough tokens");
|
require(success, "not enough tokens. Token returns false.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user