Skip to content

Commit 6677be8

Browse files
committed
fix previously incorrect change to WalletCoinRecord
1 parent e8e69e3 commit 6677be8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chia/wallet/wallet_coin_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async def count_small_unspent(self, cutoff: int, coin_type: CoinType = CoinType.
118118
async def add_coin_record(self, record: WalletCoinRecord, name: Optional[bytes32] = None) -> None:
119119
if name is None:
120120
name = record.name()
121-
assert record.spent() == (record.spent_block_height != 0)
121+
assert record.spent == (record.spent_block_height != 0)
122122
async with self.db_wrapper.writer_maybe_transaction() as conn:
123123
await conn.execute_insert(
124124
"INSERT OR REPLACE INTO coin_record ("
@@ -128,7 +128,7 @@ async def add_coin_record(self, record: WalletCoinRecord, name: Optional[bytes32
128128
name.hex(),
129129
record.confirmed_block_height,
130130
record.spent_block_height,
131-
int(record.spent()),
131+
int(record.spent),
132132
int(record.coinbase),
133133
str(record.coin.puzzle_hash.hex()),
134134
str(record.coin.parent_coin_info.hex()),

0 commit comments

Comments
 (0)