Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 3750c2b

Browse files
committed
More chainhash fixes
1 parent fb275fd commit 3750c2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

repo/db/txns.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
"github.com/OpenBazaar/openbazaar-go/repo"
1010
"github.com/OpenBazaar/wallet-interface"
11-
"github.com/btcsuite/btcd/chaincfg/chainhash"
1211
)
1312

1413
type TxnsDB struct {
@@ -120,7 +119,7 @@ func (t *TxnsDB) GetAll(includeWatchOnly bool) ([]wallet.Txn, error) {
120119
func (t *TxnsDB) Delete(txid string) error {
121120
t.lock.Lock()
122121
defer t.lock.Unlock()
123-
_, err := t.db.Exec("delete from txns where txid=? and coin=?", txid.String(), t.coinType.CurrencyCode())
122+
_, err := t.db.Exec("delete from txns where txid=? and coin=?", txid, t.coinType.CurrencyCode())
124123
if err != nil {
125124
return err
126125
}

0 commit comments

Comments
 (0)