aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/accounts.go
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/accounts.go')
-rw-r--r--accounts/accounts.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/accounts/accounts.go b/accounts/accounts.go
index b367ee2f4..6c9e0bbce 100644
--- a/accounts/accounts.go
+++ b/accounts/accounts.go
@@ -29,19 +29,16 @@ import (
// by the optional URL field.
type Account struct {
Address common.Address `json:"address"` // Ethereum account address derived from the key
- URL string `json:"url"` // Optional resource locator within a backend
+ URL URL `json:"url"` // Optional resource locator within a backend
}
// Wallet represents a software or hardware wallet that might contain one or more
// accounts (derived from the same seed).
type Wallet interface {
- // Type retrieves a textual representation of the type of the wallet.
- Type() string
-
// URL retrieves the canonical path under which this wallet is reachable. It is
// user by upper layers to define a sorting order over all wallets from multiple
// backends.
- URL() string
+ URL() URL
// Status returns a textual status to aid the user in the current state of the
// wallet.