Skip to content

Commit 7d29d6d

Browse files
committed
fix(c4-172-g02): set allowance to 0 instead of decreasing allowance by approved amount
Signed-off-by: Tomás Migone <[email protected]>
1 parent 54157a7 commit 7d29d6d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contracts/gateway/BridgeEscrow.sol

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ contract BridgeEscrow is Initializable, GraphUpgradeable, Managed {
3636
* @param _spender Address of the spender that will be revoked
3737
*/
3838
function revokeAll(address _spender) external onlyGovernor {
39-
IGraphToken grt = graphToken();
40-
grt.decreaseAllowance(_spender, grt.allowance(address(this), _spender));
39+
graphToken().approve(_spender, 0);
4140
}
4241
}

0 commit comments

Comments
 (0)