From 229f9ca76237413df26a6d6749a7d0d42e348e55 Mon Sep 17 00:00:00 2001 From: Dino Date: Thu, 16 Jun 2022 15:37:05 -0300 Subject: [PATCH] fix(SnapshotERC20Guild): fixed typo in error message --- contracts/erc20guild/implementations/SnapshotERC20Guild.sol | 2 +- test/erc20guild/implementations/SnapshotERC2Guild.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/erc20guild/implementations/SnapshotERC20Guild.sol b/contracts/erc20guild/implementations/SnapshotERC20Guild.sol index 6ce830b4..0815c3b2 100644 --- a/contracts/erc20guild/implementations/SnapshotERC20Guild.sol +++ b/contracts/erc20guild/implementations/SnapshotERC20Guild.sol @@ -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); diff --git a/test/erc20guild/implementations/SnapshotERC2Guild.js b/test/erc20guild/implementations/SnapshotERC2Guild.js index 7f5dfe27..668147f4 100644 --- a/test/erc20guild/implementations/SnapshotERC2Guild.js +++ b/test/erc20guild/implementations/SnapshotERC2Guild.js @@ -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