File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,18 @@ type Manager struct {
41
41
// NewManager creates a generic account manager to sign transaction via various
42
42
// supported backends.
43
43
func NewManager (backends ... Backend ) * Manager {
44
+ // Retrieve the initial list of wallets from the backends and sort by URL
45
+ var wallets []Wallet
46
+ for _ , backend := range backends {
47
+ wallets = merge (wallets , backend .Wallets ()... )
48
+ }
44
49
// Subscribe to wallet notifications from all backends
45
50
updates := make (chan WalletEvent , 4 * len (backends ))
46
51
47
52
subs := make ([]event.Subscription , len (backends ))
48
53
for i , backend := range backends {
49
54
subs [i ] = backend .Subscribe (updates )
50
55
}
51
- // Retrieve the initial list of wallets from the backends and sort by URL
52
- var wallets []Wallet
53
- for _ , backend := range backends {
54
- wallets = merge (wallets , backend .Wallets ()... )
55
- }
56
56
// Assemble the account manager and return
57
57
am := & Manager {
58
58
backends : make (map [reflect.Type ][]Backend ),
You can’t perform that action at this time.
0 commit comments