Skip to content

Commit

Permalink
fix(contracts): OZ-L06 Possible Misleading revert Message When Swappi…
Browse files Browse the repository at this point in the history
…ng Non-ERC20Permit Tokens (#847)

Co-authored-by: zimpha <zimpha@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 25, 2023
1 parent 6139ca0 commit e08b800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
)

var tag = "v4.1.107"
var tag = "v4.1.108"

var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {
Expand Down
3 changes: 2 additions & 1 deletion contracts/src/gas-swap/GasSwap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {OwnableBase} from "../libraries/common/OwnableBase.sol";

contract GasSwap is ERC2771Context, ReentrancyGuard, OwnableBase {
using SafeERC20 for IERC20;
using SafeERC20 for IERC20Permit;

/**********
* Events *
Expand Down Expand Up @@ -94,7 +95,7 @@ contract GasSwap is ERC2771Context, ReentrancyGuard, OwnableBase {
address _sender = _msgSender();

// do permit
IERC20Permit(_permit.token).permit(
IERC20Permit(_permit.token).safePermit(
_sender,
address(this),
_permit.value,
Expand Down

0 comments on commit e08b800

Please sign in to comment.