impermax-sdk 2.1.406 → 2.1.408

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,7 +51,7 @@ exports.IMPERMAX_FACTORY = {
51
51
  [types_1.Factory.SOLV2]: '0x66ca66E002a9CEE8dEfE25dB6f0c6225117C2d9f',
52
52
  [types_1.Factory.SOL_STABLE]: '0x8aDc5F73e63b3Af3fd0648281fE451738D8B9D86',
53
53
  [types_1.Factory.V2V2]: '0x47183bB55AD0F891887E099Cec3570d3C667cD00',
54
- [types_1.Factory.V3]: '0x175712cD666FbcfE8B69866a3088D7bf17a47685',
54
+ [types_1.Factory.V3]: '0x870fd2c2b502db53d3c9e19ab99725c1129fc120',
55
55
  },
56
56
  [types_1.Networks.Scroll]: {
57
57
  [types_1.Factory.SOLV2]: '0x02Ff7B4d96EeBF8c9B34Fae0418E591e11da3099',
@@ -60,7 +60,8 @@ class OnchainPermitHelper {
60
60
  this.deadline = general_1.DEADLINE.toString();
61
61
  this.getDomainPermit1 = async (contract, version = null) => ({
62
62
  name: await contract.methods.name().call(),
63
- version: version ? version : "1",
63
+ // some tokens (OptimismMintableERC20) are using "version" not for EIP712, so we have to normalize this result
64
+ version: version && (version === "2" || version === "3") ? version : "1",
64
65
  chainId: this.onchain.chainId,
65
66
  verifyingContract: contract._address,
66
67
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.406",
3
+ "version": "2.1.408",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",