From 602dadaca529afa8f4a04f789b64a4ec5b12a695 Mon Sep 17 00:00:00 2001 From: Junaid <86780488+jdevcs@users.noreply.github.com> Date: Mon, 3 Jul 2023 12:30:03 +0200 Subject: [PATCH] Eth personal in web3.eth (#6245) * added eth personal type in web3.eth * changelog update * Update packages/web3/src/types.ts Co-authored-by: Muhammad Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> --------- Co-authored-by: Muhammad Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> --- packages/web3/CHANGELOG.md | 4 ++++ packages/web3/src/types.ts | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/web3/CHANGELOG.md b/packages/web3/CHANGELOG.md index 3952e696ceb..8462f518826 100644 --- a/packages/web3/CHANGELOG.md +++ b/packages/web3/CHANGELOG.md @@ -124,3 +124,7 @@ Documentation: - Fixed #6162 @types/ws issue (#6205) ## [Unreleased] + +### Fixed + +- Fixed bug #6236 by adding personal type in web3.eth (#6245) diff --git a/packages/web3/src/types.ts b/packages/web3/src/types.ts index 7e05bd2f53e..fb14e6b2e1a 100644 --- a/packages/web3/src/types.ts +++ b/packages/web3/src/types.ts @@ -38,8 +38,9 @@ import { } from 'web3-eth-accounts'; import { Contract } from 'web3-eth-contract'; import { ENS } from 'web3-eth-ens'; -import Net from 'web3-net'; +import { Net } from 'web3-net'; import { Iban } from 'web3-eth-iban'; +import { Personal } from 'web3-eth-personal'; /** * The Ethereum interface for main web3 object. It provides extra methods in addition to `web3-eth` interface. @@ -90,4 +91,5 @@ export interface Web3EthInterface extends Eth { ) => Promise; wallet: Wallet; }; + personal: Personal; }