}
// annotateTxs adds account data to transactions
-func annotateTxsAccount(txs []*query.AnnotatedTx, store Store) {
+func annotateTxsAccount(txs []*query.AnnotatedTx, store WalletStorer) {
for i, tx := range txs {
for j, input := range tx.Inputs {
//issue asset tx input SpentOutputID is nil
}
}
-func getAccountFromACP(program []byte, store Store) (*account.Account, error) {
+func getAccountFromACP(program []byte, store WalletStorer) (*account.Account, error) {
var hash common.Hash
accountCP := account.CtrlProgram{}
localAccount := account.Account{}
return nil, err
}
- accountValue := store.GetAccount(accountCP.AccountID)
+ accountValue := store.GetAccountByAccountID(accountCP.AccountID)
if accountValue == nil {
return nil, fmt.Errorf("failed get account:%s ", accountCP.AccountID)
}