diff --git a/lib/index.ts b/lib/index.ts index 917681fb5f8..93ae369cd58 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -150,13 +150,10 @@ export default class VM extends AsyncEventEmitter { * Returns a copy of the [[VM]] instance. */ copy(): VM { - const hardfork = this._common.hardfork() - return new VM({ stateManager: this.stateManager.copy(), blockchain: this.blockchain, - chain: this._common.chainName(), - hardfork: hardfork !== null ? hardfork : undefined, + common: this._common }) }