소스 검색

refresh the account list when initializing the card

Guillaume Ballet 6 년 전
부모
커밋
8c786a1f99
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      accounts/scwallet/wallet.go

+ 1 - 0
accounts/scwallet/wallet.go

@@ -589,6 +589,7 @@ func (w *Wallet) Contains(account accounts.Account) bool {
 
 // Initialize installs a keypair generated from the provided key into the wallet.
 func (w *Wallet) Initialize(seed []byte) error {
+	go w.selfDerive()
 	// DO NOT lock at this stage, as the initialize
 	// function relies on Status()
 	return w.session.initialize(seed)