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
cleanup
  • Loading branch information
agryaznov committed Feb 22, 2023
commit 5ce957d7b3e37d7318c9eee6b5046aa952709080
6 changes: 3 additions & 3 deletions frame/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,6 @@ pub mod pallet {
output.result = Err(<Error<T>>::ContractReverted.into());
}
}
// println!("<fn call>: result = {:?}", &output.result);
output.gas_meter.into_dispatch_result(output.result, T::WeightInfo::call())
}

Expand Down Expand Up @@ -989,7 +988,8 @@ struct InternalOutput<T: Config, O> {
result: Result<O, ExecError>,
}

/// Helper trait to wrap contract execution entry points into a signle function [`Pallet::internal_run`].
/// Helper trait to wrap contract execution entry points into a signle function
/// [`Pallet::internal_run`].
trait Invokable<T: Config> {
type Output;

Expand Down Expand Up @@ -1300,7 +1300,7 @@ impl<T: Config> Pallet<T> {

// Remove re-entrancy guard when dropping this scope
defer! {
reentrancy_guard::with(|f| {println!("NOW F IS {:?}", f); *f = false});
reentrancy_guard::with(|f| *f = false);
};

if res.is_err() {
Expand Down
2 changes: 1 addition & 1 deletion frame/contracts/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ fn gas_call_runtime_reentrancy_guarded() {
data: vec![],
});

// Call to call_runtime contract which calls runtime to re-enter contracts stack by
// Call runtime to re-enter back to contracts engine by
// calling dummy contract
let result = Contracts::bare_call(
ALICE,
Expand Down