Skip to content

Commit

Permalink
Fix check in Escrow model
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmt committed Jun 12, 2024
1 parent 246d5f8 commit 699ed04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/model/Escrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ contract Escrow {
require(currentState == State.SignallingEscrow, "Cannot lock in current state.");
require(amount > 0, "Amount must be greater than zero.");
require(fakeETH.allowance(msg.sender, address(this)) >= amount, "Need allowance to transfer tokens.");
require(fakeETH.balanceOf(msg.sender) <= amount, "Not enough balance.");
require(fakeETH.balanceOf(msg.sender) >= amount, "Not enough balance.");
fakeETH.transferFrom(msg.sender, address(this), amount);
balances[msg.sender] += amount;
totalStaked += amount;
Expand Down

0 comments on commit 699ed04

Please sign in to comment.