Skip to content

Commit

Permalink
add some documentation on type
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-0x committed Apr 13, 2024
1 parent 7be59ed commit 5d654b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/dojo-world/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,17 @@ pub fn block_number_from_receipt(receipt: &TransactionReceipt) -> u64 {
}
}

/// Extension trait which should be implemented for any type of transactions for which we need to
/// set configuration options from `TxnConfig` before actually sending them.
#[allow(async_fn_in_trait)]
pub trait TransactionExt<T>
where
T: ConnectedAccount + Sync,
{
type R;

/// Sets `fee_estimate_multiplier` from `TxnConfig` if its present before calling `send` method
/// on the respective type.
async fn send_with_cfg(
self,
txn_config: &TxnConfig,
Expand Down

0 comments on commit 5d654b1

Please sign in to comment.