Skip to content

Commit

Permalink
Merge branch '4.x' into default-type2
Browse files Browse the repository at this point in the history
  • Loading branch information
luu-alex committed Sep 20, 2023
2 parents e92f47c + 2b445bf commit 9d9ca4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/web3-eth/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,8 @@ Documentation:

### Changed

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

### Fixed

- Ensure provider.supportsSubscriptions exists before watching by subscription (#6440)
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function watchTransactionForConfirmations<

// so a subscription for newBlockHeaders can be made instead of polling
const provider: Web3BaseProvider = web3Context.requestManager.provider as Web3BaseProvider;
if (provider.supportsSubscriptions()) {
if (provider && 'supportsSubscriptions' in provider && provider.supportsSubscriptions()) {
watchTransactionBySubscription({
web3Context,
transactionReceipt,
Expand Down

0 comments on commit 9d9ca4e

Please sign in to comment.