@@ -180,7 +180,8 @@ pub trait TransactionConnection: ClarityConnection {
180
180
/// * the asset changes during `to_do` in an `AssetMap`
181
181
/// * the Stacks events during the transaction
182
182
///
183
- /// and a `bool` value which is `true` if the `abort_call_back` caused the changes to abort.
183
+ /// and an optional string value which is the result of `abort_call_back`,
184
+ /// containing a human-readable reason for aborting the transaction.
184
185
///
185
186
/// If `to_do` returns an `Err` variant, then the changes are aborted.
186
187
fn with_abort_callback < F , A , R , E > (
@@ -301,10 +302,10 @@ pub trait TransactionConnection: ClarityConnection {
301
302
}
302
303
303
304
/// Execute a contract call in the current block.
304
- /// If an error occurs while processing the transaction, its modifications will be rolled back.
305
- /// abort_call_back is called with an AssetMap and a ClarityDatabase reference,
306
- /// if abort_call_back returns true , all modifications from this transaction will be rolled back.
307
- /// otherwise , they will be committed (though they may later be rolled back if the block itself is rolled back).
305
+ /// If an error occurs while processing the transaction, its modifications will be rolled back.
306
+ /// ` abort_call_back` is called with an ` AssetMap` and a ` ClarityDatabase` reference,
307
+ /// If ` abort_call_back` returns `Some(reason)` , all modifications from this transaction will be rolled back.
308
+ /// Otherwise , they will be committed (though they may later be rolled back if the block itself is rolled back).
308
309
#[ allow( clippy:: too_many_arguments) ]
309
310
fn run_contract_call < F > (
310
311
& mut self ,
@@ -359,9 +360,9 @@ pub trait TransactionConnection: ClarityConnection {
359
360
360
361
/// Initialize a contract in the current block.
361
362
/// If an error occurs while processing the initialization, it's modifications will be rolled back.
362
- /// abort_call_back is called with an AssetMap and a ClarityDatabase reference,
363
- /// if abort_call_back returns true , all modifications from this transaction will be rolled back.
364
- /// otherwise , they will be committed (though they may later be rolled back if the block itself is rolled back).
363
+ /// ` abort_call_back` is called with an ` AssetMap` and a ` ClarityDatabase` reference,
364
+ /// If ` abort_call_back` returns `Some(reason)` , all modifications from this transaction will be rolled back.
365
+ /// Otherwise , they will be committed (though they may later be rolled back if the block itself is rolled back).
365
366
#[ allow( clippy:: too_many_arguments) ]
366
367
fn initialize_smart_contract < F > (
367
368
& mut self ,
0 commit comments