diff --git a/go/enclave/enclave_rpc_service.go b/go/enclave/enclave_rpc_service.go index 1e0c41a7d..caedcc7ea 100644 --- a/go/enclave/enclave_rpc_service.go +++ b/go/enclave/enclave_rpc_service.go @@ -138,9 +138,8 @@ func (e *enclaveRPCService) EnclavePublicConfig(context.Context) (*common.Enclav publicCallbacksAddress = &gethcommon.Address{} } - publicContracts := e.scb.PublicSystemContracts() publicContractsMap := make(map[string]gethcommon.Address) - for name, address := range publicContracts { + for name, address := range e.scb.PublicSystemContracts() { publicContractsMap[name] = *address }