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){
687
-
info!("Post-condition check failure on non-fungible asset {} owned by {}: {:?} {:?}",&asset_id, account_principal,&asset_value, condition_code);
688
+
info!("Post-condition check failure on non-fungible asset {} owned by {}: {:?} {:?}",&asset_id, account_principal,&asset_value, condition_code;"txid" => %txid);
688
689
returnOk(false);
689
690
}
690
691
@@ -726,18 +727,18 @@ impl StacksChainState {
726
727
// each value must be covered
727
728
for v in values {
728
729
if !nfts.contains(&v.clone().try_into()?){
729
-
info!("Post-condition check failure: Non-fungible asset {} value {:?} was moved by {} but not checked",&asset_identifier,&v,&principal);
730
+
info!("Post-condition check failure: Non-fungible asset {} value {:?} was moved by {} but not checked",&asset_identifier,&v,&principal;"txid" => %txid);
730
731
returnOk(false);
731
732
}
732
733
}
733
734
}else{
734
735
// no values covered
735
-
info!("Post-condition check failure: No checks for non-fungible asset type {} moved by {}",&asset_identifier,&principal);
736
+
info!("Post-condition check failure: No checks for non-fungible asset type {} moved by {}",&asset_identifier,&principal;"txid" => %txid);
736
737
returnOk(false);
737
738
}
738
739
}else{
739
740
// no NFT for this principal
740
-
info!("Post-condition check failure: No checks for any non-fungible assets, but moved {} by {}",&asset_identifier,&principal);
741
+
info!("Post-condition check failure: No checks for any non-fungible assets, but moved {} by {}",&asset_identifier,&principal;"txid" => %txid);
741
742
returnOk(false);
742
743
}
743
744
}
@@ -747,11 +748,11 @@ impl StacksChainState {
747
748
checked_fungible_assets.get(&principal)
748
749
{
749
750
if !checked_ft_asset_ids.contains(&asset_identifier){
750
-
info!("Post-condition check failure: checks did not cover transfer of {} by {}",&asset_identifier,&principal);
751
+
info!("Post-condition check failure: checks did not cover transfer of {} by {}",&asset_identifier,&principal;"txid" => %txid);
751
752
returnOk(false);
752
753
}
753
754
}else{
754
-
info!("Post-condition check failure: No checks for fungible token type {} moved by {}",&asset_identifier,&principal);
755
+
info!("Post-condition check failure: No checks for fungible token type {} moved by {}",&asset_identifier,&principal;"txid" => %txid);
755
756
returnOk(false);
756
757
}
757
758
}
@@ -980,14 +981,14 @@ impl StacksChainState {
980
981
// Their presence in this variant makes the transaction invalid.
981
982
if tx.post_conditions.len() > 0{
982
983
let msg = format!("Invalid Stacks transaction: TokenTransfer transactions do not support post-conditions");
0 commit comments