Skip to content

Commit

Permalink
fix(SnapshotERC20Guild): fixed typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrescimbeni committed Jun 16, 2022
1 parent 9332a60 commit 229f9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ contract SnapshotERC20Guild is ERC20GuildUpgradeable {
"SnapshotERC20Guild: Unable to withdraw more tokens than locked"
);
require(tokensLocked[msg.sender].timestamp < block.timestamp, "SnapshotERC20Guild: Tokens still locked");
require(tokenAmount > 0, "ERC20Guild: amount of tokens to withdraw must be greater than 0");
require(tokenAmount > 0, "SnapshotERC20Guild: amount of tokens to withdraw must be greater than 0");
_updateAccountSnapshot(msg.sender);
_updateTotalSupplySnapshot();
tokensLocked[msg.sender].amount = tokensLocked[msg.sender].amount.sub(tokenAmount);
Expand Down
2 changes: 1 addition & 1 deletion test/erc20guild/implementations/SnapshotERC2Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ contract("SnapshotERC20Guild", function (accounts) {
// Cannot withdraw zero tokens
await expectRevert(
erc20Guild.withdrawTokens(0, { from: accounts[1] }),
"ERC20Guild: amount of tokens to withdraw must be greater than 0"
"SnapshotERC20Guild: amount of tokens to withdraw must be greater than 0"
);

// try to release more than locked and fail
Expand Down

0 comments on commit 229f9ca

Please sign in to comment.