OSDN Git Service

update
authorChengcheng Zhang <943420582@qq.com>
Wed, 3 Jul 2019 01:46:03 +0000 (09:46 +0800)
committerChengcheng Zhang <943420582@qq.com>
Wed, 3 Jul 2019 01:46:03 +0000 (09:46 +0800)
wallet/annotated.go

index b6b9290..b520759 100644 (file)
@@ -98,7 +98,7 @@ func (w *Wallet) annotateTxsAccount(txs []*query.AnnotatedTx) {
 func (w *Wallet) getAccountFromACP(program []byte) (*account.Account, error) {
        var hash [32]byte
        sha3pool.Sum256(hash[:], program)
-       accountCP, err := w.store.GetControlProgram(bc.NewHash(hash))
+       accountCP, err := w.AccountMgr.GetControlProgram(bc.NewHash(hash))
        if err != nil {
                return nil, err
        }