Skip to content

Commit

Permalink
payments: set token address as immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
abarmat committed Apr 30, 2021
1 parent 8793bfe commit 7170fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/statechannels/GRTWithdrawHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract GRTWithdrawHelper is WithdrawHelper {

// -- State --

address public tokenAddress;
address public immutable tokenAddress;

/**
* @notice Contract constructor.
Expand Down Expand Up @@ -64,7 +64,7 @@ contract GRTWithdrawHelper is WithdrawHelper {

// Approve the staking contract to pull the transfer amount
(bool success1, ) =
_wd.assetId.call(
tokenAddress.call(
abi.encodeWithSelector(APPROVE_SELECTOR, collectData.staking, _actualAmount)
);

Expand Down

0 comments on commit 7170fc0

Please sign in to comment.