Skip to content

Commit

Permalink
Eth personal in web3.eth (web3#6245)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
2 people authored and sanyu1225 committed Aug 30, 2023
1 parent 11507e0 commit 29180d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/web3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@ Documentation:
- Fixed #6162 @types/ws issue (#6205)

## [Unreleased]

### Fixed

- Fixed bug #6236 by adding personal type in web3.eth (#6245)
4 changes: 3 additions & 1 deletion packages/web3/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -90,4 +91,5 @@ export interface Web3EthInterface extends Eth {
) => Promise<Web3Account>;
wallet: Wallet;
};
personal: Personal;
}

0 comments on commit 29180d4

Please sign in to comment.