Skip to content

Commit 9dab144

Browse files
committed
minor fixes
1 parent 6427805 commit 9dab144

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

stacks-node/src/tests/nakamoto_integrations.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12639,7 +12639,7 @@ fn write_signer_update(
1263912639
/// Test SIP-031 activation
1264012640
///
1264112641
/// - check epoch 3.2 is active
12642-
/// - check sip031 boot contract has a balance of 200_000_000 STX (TODO)
12642+
/// - check sip031 boot contract has a balance of 200_000_000 STX
1264312643
#[test]
1264412644
#[ignore]
1264512645
fn test_sip_031_activation() {
@@ -12846,7 +12846,7 @@ fn test_sip_031_activation() {
1284612846
.unwrap()
1284712847
.as_str()
1284812848
.unwrap(),
12849-
"200000000000000"
12849+
SIP_031_INITIAL_MINT.to_string()
1285012850
);
1285112851

1285212852
// check the recipient

stackslib/src/clarity_vm/clarity.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ impl<'a> ClarityBlockConnection<'a, '_> {
16351635
};
16361636

16371637
let boot_code_address = boot_code_addr(mainnet);
1638-
let boot_code_auth = boot_code_tx_auth(boot_code_address.clone());
1638+
let boot_code_auth = boot_code_tx_auth(boot_code_address);
16391639

16401640
// SIP-031 setup (deploy of the boot contract, minting and transfer to the boot contract)
16411641
let sip_031_contract_id = boot_code_id(SIP_031_NAME, mainnet);
@@ -1654,28 +1654,28 @@ impl<'a> ClarityBlockConnection<'a, '_> {
16541654

16551655
let mut sip_031_initialization_receipt = self.as_transaction(|tx_conn| {
16561656
// initialize with a synthetic transaction
1657-
debug!("Instantiate {} contract", &sip_031_contract_id);
1657+
info!("Instantiate {} contract", &sip_031_contract_id);
16581658
let receipt = StacksChainState::process_transaction_payload(
16591659
tx_conn,
16601660
&sip_031_contract_tx,
16611661
&boot_code_account,
16621662
ASTRules::PrecheckSize,
16631663
None,
16641664
)
1665-
.expect("FATAL: Failed to process .sip031 contract initialization");
1665+
.expect("FATAL: Failed to process .sip-031 contract initialization");
16661666
receipt
16671667
});
16681668

16691669
if sip_031_initialization_receipt.result != Value::okay_true()
16701670
|| sip_031_initialization_receipt.post_condition_aborted
16711671
{
16721672
panic!(
1673-
"FATAL: Failure processing sip031 contract initialization: {:#?}",
1673+
"FATAL: Failure processing sip-031 contract initialization: {:#?}",
16741674
&sip_031_initialization_receipt
16751675
);
16761676
}
16771677

1678-
let recipient = PrincipalData::Contract(boot_code_id(SIP_031_NAME, mainnet));
1678+
let recipient = PrincipalData::Contract(sip_031_contract_id);
16791679

16801680
self.as_transaction(|tx_conn| {
16811681
tx_conn

0 commit comments

Comments
 (0)