Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions precompiles/assets-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ where
_handle: &mut impl PrecompileHandle,
id: u64,
) -> EvmResult<Address> {
_handle.record_db_read::<Runtime>(36)?;
Comment thread
sfffaaa marked this conversation as resolved.
let asset_id = id
.try_into()
.map_err(|_| RevertReason::value_is_too_large("asset id type").in_field("id"))?;
Expand Down
42 changes: 36 additions & 6 deletions precompiles/xtokens/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ where
dest_weight_limit,
};

RuntimeHelper::<Runtime>::try_dispatch(handle, Some(origin).into(), call, 0)?;
RuntimeHelper::<Runtime>::try_dispatch(
Comment thread
sfffaaa marked this conversation as resolved.
handle,
Some(origin).into(),
call,
SYSTEM_ACCOUNT_SIZE,
)?;

Ok(())
}
Expand Down Expand Up @@ -160,7 +165,12 @@ where
dest_weight_limit,
};

RuntimeHelper::<Runtime>::try_dispatch(handle, Some(origin).into(), call, 0)?;
RuntimeHelper::<Runtime>::try_dispatch(
handle,
Some(origin).into(),
call,
SYSTEM_ACCOUNT_SIZE,
)?;

Ok(())
}
Expand Down Expand Up @@ -194,7 +204,12 @@ where
dest_weight_limit,
};

RuntimeHelper::<Runtime>::try_dispatch(handle, Some(origin).into(), call, 0)?;
RuntimeHelper::<Runtime>::try_dispatch(
handle,
Some(origin).into(),
call,
SYSTEM_ACCOUNT_SIZE,
)?;

Ok(())
}
Expand Down Expand Up @@ -240,7 +255,12 @@ where
dest_weight_limit,
};

RuntimeHelper::<Runtime>::try_dispatch(handle, Some(origin).into(), call, 0)?;
RuntimeHelper::<Runtime>::try_dispatch(
handle,
Some(origin).into(),
call,
SYSTEM_ACCOUNT_SIZE,
)?;

Ok(())
}
Expand Down Expand Up @@ -299,7 +319,12 @@ where
dest_weight_limit,
};

RuntimeHelper::<Runtime>::try_dispatch(handle, Some(origin).into(), call, 0)?;
RuntimeHelper::<Runtime>::try_dispatch(
handle,
Some(origin).into(),
call,
SYSTEM_ACCOUNT_SIZE,
)?;

Ok(())
}
Expand Down Expand Up @@ -353,7 +378,12 @@ where
dest_weight_limit,
};

RuntimeHelper::<Runtime>::try_dispatch(handle, Some(origin).into(), call, 0)?;
RuntimeHelper::<Runtime>::try_dispatch(
handle,
Some(origin).into(),
call,
SYSTEM_ACCOUNT_SIZE,
)?;

Ok(())
}
Expand Down