diff --git a/packages/common/src/common.ts b/packages/common/src/common.ts index 7b598ae1ba..4b27244ba2 100644 --- a/packages/common/src/common.ts +++ b/packages/common/src/common.ts @@ -841,8 +841,13 @@ export class Common { * Returns a deep copy of this {@link Common} instance. */ copy(): Common { - const copy = Object.assign(Object.create(Object.getPrototypeOf(this)), this) - copy.events = new EventEmitter() + const copy = new Common({ + chain: { ...this._chainParams }, + eips: [...this._eips], + customCrypto: this.customCrypto, + }) + copy.updateParams(this._params) + copy.setHardfork(this.hardfork()) return copy } }