Skip to content

Commit 77ac0c8

Browse files
committed
force a check for interface implementation
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent 3348ebd commit 77ac0c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

token/services/identity/wallet/service.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ import (
1717
"github.com/hyperledger-labs/fabric-token-sdk/token/token"
1818
)
1919

20+
var (
21+
// This makes sure that Service implements driver.WalletService
22+
_ driver.WalletService = &Service{}
23+
)
24+
2025
var (
2126
// ErrNilRecipientData is returned when a nil RecipientData is passed to RegisterRecipientIdentity
2227
ErrNilRecipientData = errors.New("nil recipient data")
@@ -32,6 +37,7 @@ type Registry interface {
3237
WalletByID(ctx context.Context, role identity.RoleType, id driver.WalletLookupID) (driver.Wallet, error)
3338
}
3439

40+
// Service implements the driver.WalletService interface.
3541
// Service exposes wallet-related helper operations used by the token management layer.
3642
// It delegates identity operations to the configured IdentityProvider and uses
3743
// registries for role-specific wallet lookups and registrations.

0 commit comments

Comments
 (0)