Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply style suggestions from code review
Co-Authored-By: Tomasz Drwięga <[email protected]>
  • Loading branch information
athei and tomusdrw committed Apr 22, 2020
commit 014d7d808f6b905be43e32d4d0c0dfaf85f5ab80
4 changes: 2 additions & 2 deletions frame/contracts/src/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ impl<T: Trait> GasMeter<T> {
self.gas_left
}

// Turn this GasMeter into a DispatchResult that contains the actually used gas
/// Turn this GasMeter into a DispatchResult that contains the actually used gas.
pub fn into_dispatch_result<R, E>(self, result: Result<R, E>) -> DispatchResultWithPostInfo where
E: Into<DispatchError>
E: Into<DispatchError>,
{
let post_info = PostDispatchInfo {
actual_weight: Some(self.gas_spent()),
Expand Down
2 changes: 1 addition & 1 deletion frame/contracts/src/wasm/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub enum RuntimeToken {
/// The given number of bytes is read from the sandbox memory and
/// is returned as the return data buffer of the call.
ReturnData(u32),
// Dispatched a call with the given weight.
/// Dispatched a call with the given weight.
DispatchWithWeight(Gas),
/// (topic_count, data_bytes): A buffer of the given size is posted as an event indexed with the
/// given number of topics.
Expand Down
2 changes: 1 addition & 1 deletion frame/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ macro_rules! assert_err {
}
}

/// Assert an expression returns an error specified
/// Assert an expression returns an error specified.
///
/// This can be used on`DispatchResultWithPostInfo` when the post info should
/// be ignored.
Expand Down