Add checkAllowance flag to LibTokenSpender.spendERC20Tokens (#39)

This commit is contained in:
mzhu25
2020-11-18 12:23:13 -08:00
committed by GitHub
parent 561b60a24d
commit 89948b360c
8 changed files with 65 additions and 17 deletions

View File

@@ -78,7 +78,7 @@ contract MetaTransactionsFeature is
/// @dev Name of this feature.
string public constant override FEATURE_NAME = "MetaTransactions";
/// @dev Version of this feature.
uint256 public immutable override FEATURE_VERSION = _encodeVersion(1, 0, 0);
uint256 public immutable override FEATURE_VERSION = _encodeVersion(1, 1, 0);
/// @dev EIP712 typehash of the `MetaTransactionData` struct.
bytes32 public immutable MTX_EIP712_TYPEHASH = keccak256(
"MetaTransactionData("
@@ -283,7 +283,8 @@ contract MetaTransactionsFeature is
mtx.feeToken,
mtx.signer,
sender,
mtx.feeAmount
mtx.feeAmount,
true
);
}