@toruslabs/ethereum-controllers 6.1.2 → 6.1.4

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.
@@ -2621,6 +2621,7 @@ class KeyringController extends base_controllers_namespaceObject.BaseKeyringCont
2621
2621
  async signTypedData(typedData, address) {
2622
2622
  const wallet = this._getWalletForAccount(address);
2623
2623
  const privKey = new external_ethers_namespaceObject.SigningKey((0,util_namespaceObject.addHexPrefix)(wallet.privateKey));
2624
+ delete typedData.types.EIP712Domain;
2624
2625
  const signature = privKey.sign(external_ethers_namespaceObject.TypedDataEncoder.hash(typedData.domain, typedData.types, typedData.message)).serialized;
2625
2626
  return signature;
2626
2627
  }
@@ -2337,6 +2337,7 @@ class KeyringController extends BaseKeyringController {
2337
2337
  async signTypedData(typedData, address) {
2338
2338
  const wallet = this._getWalletForAccount(address);
2339
2339
  const privKey = new SigningKey(addHexPrefix(wallet.privateKey));
2340
+ delete typedData.types.EIP712Domain;
2340
2341
  const signature = privKey.sign(TypedDataEncoder.hash(typedData.domain, typedData.types, typedData.message)).serialized;
2341
2342
  return signature;
2342
2343
  }