@@ -12886,14 +12886,14 @@ fn test_sip_031_activation() {
12886
12886
12887
12887
// check if the coinbase activation block receipt has the mint event
12888
12888
let mut mint_event_found: Option < serde_json:: Value > = None ;
12889
- let mut coinbase_txid : Option < String > = None ;
12889
+ let mut contract_deploy_txid : Option < String > = None ;
12890
12890
for block in test_observer:: get_blocks ( ) . iter ( ) . rev ( ) {
12891
12891
let burn_block_height = block. get ( "burn_block_height" ) . unwrap ( ) . as_u64 ( ) . unwrap ( ) ;
12892
12892
if burn_block_height
12893
12893
== naka_conf. burnchain . epochs . clone ( ) . unwrap ( ) [ StacksEpochId :: Epoch32 ] . start_height
12894
12894
{
12895
- // the first transaction is the coinbase
12896
- coinbase_txid = Some (
12895
+ // the first transaction is the boot contract deploy
12896
+ contract_deploy_txid = Some (
12897
12897
block
12898
12898
. get ( "transactions" )
12899
12899
. unwrap ( )
@@ -12907,6 +12907,19 @@ fn test_sip_031_activation() {
12907
12907
. unwrap ( )
12908
12908
. into ( ) ,
12909
12909
) ;
12910
+
12911
+ // ensure it has a contract_interface
12912
+ assert ! ( block
12913
+ . get( "transactions" )
12914
+ . unwrap( )
12915
+ . as_array( )
12916
+ . unwrap( )
12917
+ . first( )
12918
+ . unwrap( )
12919
+ . get( "contract_interface" )
12920
+ . unwrap( )
12921
+ . as_object( )
12922
+ . is_some( ) ) ;
12910
12923
let events = block. get ( "events" ) . unwrap ( ) . as_array ( ) . unwrap ( ) ;
12911
12924
for event in events {
12912
12925
if let Some ( _) = event. get ( "stx_mint_event" ) {
@@ -12918,7 +12931,7 @@ fn test_sip_031_activation() {
12918
12931
}
12919
12932
}
12920
12933
12921
- assert ! ( coinbase_txid . is_some( ) ) ;
12934
+ assert ! ( contract_deploy_txid . is_some( ) ) ;
12922
12935
assert ! ( mint_event_found. is_some( ) ) ;
12923
12936
12924
12937
// check the amount
@@ -12958,7 +12971,7 @@ fn test_sip_031_activation() {
12958
12971
. unwrap( )
12959
12972
. as_str( )
12960
12973
. unwrap( ) ,
12961
- coinbase_txid . unwrap( )
12974
+ contract_deploy_txid . unwrap( )
12962
12975
) ;
12963
12976
12964
12977
coord_channel
0 commit comments