Skip to content

Commit

Permalink
Override transferFrom in __unstable__ERC20PrimaryAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
nventuro committed Aug 2, 2019
1 parent 3328834 commit 9928686
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contracts/gsn/bouncers/GSNBouncerERC20Fee.sol
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,13 @@ contract __unstable__ERC20PrimaryAdmin is ERC20, ERC20Detailed, Secondary {
super._approve(owner, spender, value);
}
}

function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
if (recipient == primary()) {
_transfer(sender, recipient, amount);
return true;
} else {
return super.transferFrom(sender, recipient, amount);
}
}
}

0 comments on commit 9928686

Please sign in to comment.