From f70140693b14edb20891a4c8554f5fcc58dc6dd3 Mon Sep 17 00:00:00 2001 From: Dan Forbes Date: Wed, 9 Oct 2024 06:24:03 -0700 Subject: [PATCH] Export EIP-6963 Types (#7270) * Export EIP-6963 Types * CHANGELOG * Comments from Review --- CHANGELOG.md | 4 ++++ packages/web3/src/index.ts | 1 + packages/web3/src/providers.exports.ts | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b07a0730c4c..0666ebd3166 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2740,3 +2740,7 @@ If there are any bugs, improvements, optimizations or any new feature proposal f #### web3-eth - Allow `getEthereumjsTxDataFrom` to return additional fields that may be passed if using a `customTransactionSchema`. + +#### web3 + +- Exported EIP-6963 types are no longer under the `providers` namespace. (#7270) diff --git a/packages/web3/src/index.ts b/packages/web3/src/index.ts index 45d625b6e48..24a7b1aa501 100644 --- a/packages/web3/src/index.ts +++ b/packages/web3/src/index.ts @@ -327,6 +327,7 @@ along with web3.js. If not, see . import Web3 from './web3.js'; export * from './types.js'; +export * from './web3_eip6963.js'; export default Web3; /** diff --git a/packages/web3/src/providers.exports.ts b/packages/web3/src/providers.exports.ts index 3d20b0116b9..c0bbadc1b23 100644 --- a/packages/web3/src/providers.exports.ts +++ b/packages/web3/src/providers.exports.ts @@ -19,4 +19,3 @@ export { Eip1193Provider, SocketProvider } from 'web3-utils'; export * as http from 'web3-providers-http'; export * as ws from 'web3-providers-ws'; -export * from './web3_eip6963.js';