Files
linea-monorepo/prover/protocol/serialization/implementation_registry_test.go
AlexandreBelling e63c730d6d Prover: switch the go import path to linea-monorepo (#20)
* switch the go import path to linea-monorepo
* address every occurence to zkevm-monorepo
2024-09-13 15:10:04 +02:00

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
}