mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 20:27:58 -05:00
* switch the go import path to linea-monorepo * address every occurence to zkevm-monorepo
19 lines
398 B
Go
19 lines
398 B
Go
package serialization
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"github.com/consensys/linea-monorepo/prover/utils/collection"
|
|
)
|
|
|
|
var _registryBkp = collection.NewMapping[string, reflect.Type]()
|
|
|
|
func backupRegistryAndReset() {
|
|
_registryBkp = implementationRegistry
|
|
implementationRegistry = collection.NewMapping[string, reflect.Type]()
|
|
}
|
|
|
|
func restoreRegistryFromBackup() {
|
|
implementationRegistry = _registryBkp
|
|
}
|