From 9c75109b7561e8419fd47ad46cf55e8a92932255 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Wed, 22 Jan 2025 15:35:16 +0300 Subject: [PATCH] use dev storage service --- remote/http/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/remote/http/service.go b/remote/http/service.go index 40aa4a1..15eaa24 100644 --- a/remote/http/service.go +++ b/remote/http/service.go @@ -14,7 +14,7 @@ import ( "git.grassecon.net/grassrootseconomics/sarafu-api/config" "git.grassecon.net/grassrootseconomics/sarafu-api/dev" "git.grassecon.net/grassrootseconomics/sarafu-api/models" - "git.grassecon.net/grassrootseconomics/visedriver/testutil/mocks" + "git.grassecon.net/grassrootseconomics/visedriver/storage" "github.com/grassrootseconomics/eth-custodial/pkg/api" dataserviceapi "github.com/grassrootseconomics/ussd-data-service/pkg/api" ) @@ -24,6 +24,7 @@ var ( ) type HTTPAccountService struct { + ss storage.StorageService } // Parameters: @@ -228,8 +229,7 @@ func (as *HTTPAccountService) CheckAliasAddress(ctx context.Context, alias strin // TODO: Use actual custodial api to request available alias func (as *HTTPAccountService) RequestAlias(ctx context.Context, publicKey string, hint string) (*models.RequestAliasResult, error) { - storageService := mocks.NewMemStorageService(ctx) - svc := dev.NewDevAccountService(ctx, storageService) + svc := dev.NewDevAccountService(ctx, as.ss) return svc.RequestAlias(ctx, publicKey, hint) }