Skip to content

Commit 33b4ee3

Browse files
committed
Fix boot_code_addr call
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent b84e753 commit 33b4ee3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testnet/stacks-node/src/tests/neon_integrations.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ pub mod test_observer {
200200
use stacks::chainstate::stacks::{StacksTransaction, TransactionPayload};
201201
use stacks::codec::StacksMessageCodec;
202202
use stacks::config::{EventKeyType, EventObserverConfig};
203+
use stacks::core::CHAIN_ID_MAINNET;
203204
use stacks::net::api::postblock_proposal::BlockValidateResponse;
204205
use stacks::util::hash::hex_bytes;
205206
use stacks_common::types::chainstate::StacksBlockId;
@@ -599,10 +600,9 @@ pub mod test_observer {
599600
let tx =
600601
StacksTransaction::consensus_deserialize(&mut tx_bytes.as_slice()).unwrap();
601602

602-
let mainnet_address = boot_code_addr(true).into();
603-
let testnet_address = boot_code_addr(false).into();
603+
let boot_address = boot_code_addr(tx.chain_id == CHAIN_ID_MAINNET).into();
604604
if let TransactionPayload::TokenTransfer(address, amount, _) = &tx.payload {
605-
if *address == mainnet_address || *address == testnet_address && *amount == 0 {
605+
if *address == boot_address && *amount == 0 {
606606
return None;
607607
}
608608
}

0 commit comments

Comments
 (0)