mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
tidy: use nullptr in simplicity targets
This commit is contained in:
parent
25c864583a
commit
ff888d5a2b
2 changed files with 3 additions and 3 deletions
|
|
@ -204,11 +204,11 @@ FUZZ_TARGET_INIT(simplicity, initialize_simplicity)
|
|||
PrecomputedTransactionData txdata{GENESIS_HASH};
|
||||
std::vector<CTxOut> spent_outs_copy{spent_outs};
|
||||
txdata.Init(mtx, std::move(spent_outs_copy));
|
||||
assert(txdata.m_simplicity_tx_data != NULL);
|
||||
assert(txdata.m_simplicity_tx_data != nullptr);
|
||||
|
||||
// 4. Main test
|
||||
unsigned char imr_out[32];
|
||||
unsigned char *imr = mtx.vin[0].prevout.hash.data()[2] & 2 ? imr_out : NULL;
|
||||
unsigned char *imr = mtx.vin[0].prevout.hash.data()[2] & 2 ? imr_out : nullptr;
|
||||
|
||||
const transaction* tx = txdata.m_simplicity_tx_data;
|
||||
tapEnv* taproot = simplicity_elements_mallocTapEnv(&simplicityRawTap);
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ FUZZ_TARGET_INIT(simplicity_tx, initialize_simplicity_tx)
|
|||
// that we will allocate Simplicity data. The check for whether to do this is very
|
||||
// lax: is this a 34-byte scriptPubKey that starts with OP_1 and does it have a
|
||||
// nonempty witness.
|
||||
assert(txdata.m_simplicity_tx_data != NULL);
|
||||
assert(txdata.m_simplicity_tx_data != nullptr);
|
||||
}
|
||||
|
||||
const CTransaction tx{mtx};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue