Skip to content

Commit

Permalink
chore: add requrie statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tnkshuuhei committed Oct 11, 2024
1 parent 034b507 commit 6b92ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CEP.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ contract CEP is AccessControl, ReentrancyGuard, Errors {
// TODO: decide whitch token should be used for deposit
// TODO: decide how many token should be deposited, should be the pre-defined amount or the amount that is
// passed as an argument
token.transferFrom(msg.sender, address(evaluation), _amount);
require(token.transferFrom(msg.sender, address(evaluation), _amount), "Token transfer failed");

// create array of calldatas, targets, and values
bytes[] memory calldatas;
Expand Down

0 comments on commit 6b92ddb

Please sign in to comment.