Skip to content

Commit

Permalink
make transferFrom retun boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
AmadiMichael committed Feb 11, 2024
1 parent 78640d8 commit 6069e13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DN404.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ abstract contract DN404 {
return true;
}

function transferFrom(address from, address to, uint256 amount) public virtual {
function transferFrom(address from, address to, uint256 amount) public virtual returns (bool) {
DN404Storage storage $ = _getDN404Storage();

uint256 allowed = $.allowance[from][msg.sender];
Expand All @@ -171,6 +171,8 @@ abstract contract DN404 {
}

_transfer(from, to, amount);

return true;
}

/*«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-«-*/
Expand Down

0 comments on commit 6069e13

Please sign in to comment.