Skip to content

Commit

Permalink
evm: approve -> safeIncreaseAllowance
Browse files Browse the repository at this point in the history
  • Loading branch information
a5-pickle committed Apr 4, 2024
1 parent 7599cbe commit b7ed9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evm/src/contracts/WormholeCctpTokenMessenger.sol
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ abstract contract WormholeCctpTokenMessenger {
* who will ultimately be burning the tokens.
*/
function setTokenMessengerApproval(address token, uint256 amount) internal {
IERC20(token).approve(address(_tokenMessenger), amount);
IERC20(token).safeIncreaseAllowance(address(_tokenMessenger), amount);
}

/**
Expand Down

0 comments on commit b7ed9ec

Please sign in to comment.