Skip to content

Commit

Permalink
Merge branch '4.x' into ok/6989-Tests-&-ESLint-Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Apr 30, 2024
2 parents a180d46 + ebbbf1e commit c6bda35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/web3/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,8 @@ Documentation:
- Added `signature` to type `AbiFunctionFragment` (#6922)
- update type `Withdrawals`, `block` and `BlockHeaderOutput` to include properties of eip 4844, 4895, 4788 (#6933)

## [Unreleased]
## [Unreleased]

### added

- Updated type `Web3EthInterface.accounts` to includes `privateKeyToAccount`,`privateKeyToAddress`,and `privateKeyToPublicKey` (#6762)
3 changes: 3 additions & 0 deletions packages/web3/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ export interface Web3EthInterface extends Eth {
options?: Record<string, unknown>,
) => Promise<Web3Account>;
wallet: Wallet;
privateKeyToAddress: (privateKey: Bytes) => string;
privateKeyToPublicKey: (privateKey: Bytes, isCompressed: boolean) => string;
parseAndValidatePrivateKey: (data: Bytes, ignoreLength?: boolean) => Uint8Array;
};
personal: Personal;
}

0 comments on commit c6bda35

Please sign in to comment.