Skip to content

Commit

Permalink
fix(*): fix nonce modifying
Browse files Browse the repository at this point in the history
  • Loading branch information
wd30130 committed Aug 22, 2024
1 parent 5525119 commit 176eed8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frame/hybrid-vm-port/src/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl<T: Config> Pallet<T> {
};

let info = pallet_contracts::Pallet::<T>::bare_call(
origin,
origin.clone(),
t.into(),
balance,
weight_limit,
Expand All @@ -362,8 +362,7 @@ impl<T: Config> Pallet<T> {
match info.result {
Ok(return_value) => {
if !return_value.did_revert() {
// because return_value.data = MessageResult<T, E>, so, the
// first byte is zhe Ok() Code, be removed
frame_system::Pallet::<T>::inc_account_nonce(&origin);
let err_data = DispatchErrorWithPostInfo {
post_info: PostDispatchInfo {
actual_weight: Some(info.gas_consumed),
Expand Down

0 comments on commit 176eed8

Please sign in to comment.