diff --git a/jest.config.js b/jest.config.js index fc5200f4..8c1d760f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -22,8 +22,8 @@ module.exports = { global: { branches: 58.12, functions: 54.95, - lines: 60.76, - statements: 60.99, + lines: 60.61, + statements: 60.84, }, }, projects: [ diff --git a/src/BaseProvider.ts b/src/BaseProvider.ts index 984c9813..c8b73878 100644 --- a/src/BaseProvider.ts +++ b/src/BaseProvider.ts @@ -417,7 +417,8 @@ export abstract class BaseProvider extends SafeEventEmitter { // finally, after all state has been updated, emit the event if (this._state.initialized) { - this.emit('accountsChanged', _accounts); + const _nextAccounts = [..._accounts]; + this.emit('accountsChanged', _nextAccounts); } } }