@metamask-previews/keyring-controller 19.2.0-preview-a1eb992b → 19.2.0-preview-1cc9329c

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.
@@ -700,6 +700,9 @@ class KeyringController extends base_controller_1.BaseController {
700
700
  }
701
701
  const { chainId, nonce } = params;
702
702
  const contractAddress = (0, eth_sig_util_1.normalize)(params.contractAddress);
703
+ if (contractAddress === undefined) {
704
+ throw new Error(constants_1.KeyringControllerError.MissingEip7702AuthorizationContractAddress);
705
+ }
703
706
  return await keyring.signEip7702Authorization(from, [
704
707
  chainId,
705
708
  contractAddress,