Skip to content

Commit

Permalink
Fis missing safeTransferFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
k1rill-fedoseev committed Mar 13, 2021
1 parent 1166e00 commit 620c4e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ contract ForeignMultiAMBErc20ToErc677 is BasicMultiAMBErc20ToErc677 {

uint256 balanceBefore = token.balanceOf(address(this));
setLock(true);
token.transferFrom(msg.sender, address(this), _value);
token.safeTransferFrom(msg.sender, _value);
setLock(false);
uint256 balanceDiff = token.balanceOf(address(this)).sub(balanceBefore);
require(balanceDiff <= _value);
Expand Down

0 comments on commit 620c4e3

Please sign in to comment.