Skip to content

Commit

Permalink
fix changelog syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
avkos committed Oct 12, 2023
1 parent d96ceaa commit 9f6f2c7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 8 deletions.
42 changes: 41 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2089,19 +2089,59 @@ If there are any bugs, improvements, optimizations or any new feature proposal f

- Added `ALL_EVENTS` and `ALL_EVENTS_ABI` constants, `SendTransactionEventsBase` type, `decodeEventABI` method (#6410)

#### web3-eth-accounts

- Added public function `privateKeyToPublicKey`
- Added exporting `BaseTransaction` from the package (#6493)
- Added exporting `txUtils` from the package (#6493)

#### web3-types

- Interface `EventLog` was added. (#6410)

#### web3-utils

- As a replacment of the node EventEmitter, a custom `EventEmitter` has been implemented and exported. (#6398)

### Fixed

#### web3-core

- Fix the issue: "Uncaught TypeError: Class extends value undefined is not a constructor or null #6371". (#6398)

#### web3-eth

- Ensure provider.supportsSubscriptions exists before watching by subscription (#6440)
- Fixed `withdrawalsSchema.address` property type `bytes32` to `address` (#6470)
- Fixed param sent to `checkRevertBeforeSending` in `sendSignedTransaction`

#### web3-eth-accounts

- Fixed `recover` function, `v` will be normalized to value 0,1 (#6344)

#### web3-providers-http

- Fix issue lquixada/cross-fetch#78, enabling to run web3.js in service worker (#6463)

#### web3-validator

- Multi-dimensional arrays are now handled properly when parsing ABIs

### Changed

#### web3-core

- defaultTransactionType is now type 0x2 instead of 0x0 (#6282)
- Allows formatter to parse large base fee (#6456)
- The package now uses `EventEmitter` from `web3-utils` that works in node envrioment as well as in the browser. (#6398)

#### web3-eth

- Transactions will now default to type 2 transactions instead of type 0, similar to 1.x version. (#6282)

#### web3-eth-contract

- The `events` property was added to the `receipt` object (#6410)

#### web3-providers-http

- Bump cross-fetch to version 4 (#6463).
12 changes: 6 additions & 6 deletions packages/web3-eth-accounts/test/unit/common/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ describe('[Utils/Parse]', () => {
merge: '0x013fd1b5',
};

it('should parse geth params file', async () => {
it('should parse geth params file', () => {
const params = parseGethGenesis(testnet, 'rinkeby');
expect(params.genesis.nonce).toBe('0x0000000000000042');
});

it('should throw with invalid Spurious Dragon blocks', async () => {
it('should throw with invalid Spurious Dragon blocks', () => {
expect(() => {
parseGethGenesis(invalidSpuriousDragon, 'bad_params');
}).toThrow();
});

it('should import poa network params correctly', async () => {
it('should import poa network params correctly', () => {
let params = parseGethGenesis(poa, 'poa');
expect(params.genesis.nonce).toBe('0x0000000000000000');
expect(params.consensus).toEqual({
Expand All @@ -67,18 +67,18 @@ describe('[Utils/Parse]', () => {
expect(params.hardfork).toEqual(Hardfork.London);
});

it('should generate expected hash with london block zero and base fee per gas defined', async () => {
it('should generate expected hash with london block zero and base fee per gas defined', () => {
const params = parseGethGenesis(postMerge, 'post-merge');
expect(params.genesis.baseFeePerGas).toEqual(postMerge.baseFeePerGas);
});

it('should successfully parse genesis file with no extraData', async () => {
it('should successfully parse genesis file with no extraData', () => {
const params = parseGethGenesis(noExtraData, 'noExtraData');
expect(params.genesis.extraData).toBe('0x');
expect(params.genesis.timestamp).toBe('0x10');
});

it('should successfully parse kiln genesis and set forkhash', async () => {
it('should successfully parse kiln genesis and set forkhash', () => {
const common = Common.fromGethGenesis(gethGenesisKiln, {
chain: 'customChain',
genesisHash: hexToBytes(
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-validator/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ Documentation:

## [Unreleased]

## Fixed
### Fixed

- Multi-dimensional arrays are now handled properly when parsing ABIs

0 comments on commit 9f6f2c7

Please sign in to comment.