You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if !condition_code.check(asset_value, assets_sent){
659
-
info!("Post-condition check failure on non-fungible asset {} owned by {}: {:?} {:?}",&asset_id, account_principal,&asset_value, condition_code);
660
+
info!("Post-condition check failure on non-fungible asset {} owned by {}: {:?} {:?}",&asset_id, account_principal,&asset_value, condition_code;"txid" => %txid);
660
661
returnOk(false);
661
662
}
662
663
@@ -698,18 +699,18 @@ impl StacksChainState {
698
699
// each value must be covered
699
700
for v in values {
700
701
if !nfts.contains(&v.clone().try_into()?){
701
-
info!("Post-condition check failure: Non-fungible asset {} value {:?} was moved by {} but not checked",&asset_identifier,&v,&principal);
702
+
info!("Post-condition check failure: Non-fungible asset {} value {:?} was moved by {} but not checked",&asset_identifier,&v,&principal;"txid" => %txid);
702
703
returnOk(false);
703
704
}
704
705
}
705
706
}else{
706
707
// no values covered
707
-
info!("Post-condition check failure: No checks for non-fungible asset type {} moved by {}",&asset_identifier,&principal);
708
+
info!("Post-condition check failure: No checks for non-fungible asset type {} moved by {}",&asset_identifier,&principal;"txid" => %txid);
708
709
returnOk(false);
709
710
}
710
711
}else{
711
712
// no NFT for this principal
712
-
info!("Post-condition check failure: No checks for any non-fungible assets, but moved {} by {}",&asset_identifier,&principal);
713
+
info!("Post-condition check failure: No checks for any non-fungible assets, but moved {} by {}",&asset_identifier,&principal;"txid" => %txid);
713
714
returnOk(false);
714
715
}
715
716
}
@@ -719,11 +720,11 @@ impl StacksChainState {
719
720
checked_fungible_assets.get(&principal)
720
721
{
721
722
if !checked_ft_asset_ids.contains(&asset_identifier){
722
-
info!("Post-condition check failure: checks did not cover transfer of {} by {}",&asset_identifier,&principal);
723
+
info!("Post-condition check failure: checks did not cover transfer of {} by {}",&asset_identifier,&principal;"txid" => %txid);
723
724
returnOk(false);
724
725
}
725
726
}else{
726
-
info!("Post-condition check failure: No checks for fungible token type {} moved by {}",&asset_identifier,&principal);
727
+
info!("Post-condition check failure: No checks for fungible token type {} moved by {}",&asset_identifier,&principal;"txid" => %txid);
727
728
returnOk(false);
728
729
}
729
730
}
@@ -950,14 +951,14 @@ impl StacksChainState {
950
951
// Their presence in this variant makes the transaction invalid.
951
952
if tx.post_conditions.len() > 0{
952
953
let msg = format!("Invalid Stacks transaction: TokenTransfer transactions do not support post-conditions");
0 commit comments