diff --git a/precompiles/assets-factory/src/lib.rs b/precompiles/assets-factory/src/lib.rs index d695b3ff7..37ded8456 100644 --- a/precompiles/assets-factory/src/lib.rs +++ b/precompiles/assets-factory/src/lib.rs @@ -75,6 +75,7 @@ where _handle: &mut impl PrecompileHandle, id: u64, ) -> EvmResult
{ + _handle.record_db_read::(36)?; let asset_id = id .try_into() .map_err(|_| RevertReason::value_is_too_large("asset id type").in_field("id"))?; diff --git a/precompiles/xtokens/src/lib.rs b/precompiles/xtokens/src/lib.rs index 1e76a194b..500af4d50 100644 --- a/precompiles/xtokens/src/lib.rs +++ b/precompiles/xtokens/src/lib.rs @@ -113,7 +113,12 @@ where dest_weight_limit, }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch( + handle, + Some(origin).into(), + call, + SYSTEM_ACCOUNT_SIZE, + )?; Ok(()) } @@ -160,7 +165,12 @@ where dest_weight_limit, }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch( + handle, + Some(origin).into(), + call, + SYSTEM_ACCOUNT_SIZE, + )?; Ok(()) } @@ -194,7 +204,12 @@ where dest_weight_limit, }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch( + handle, + Some(origin).into(), + call, + SYSTEM_ACCOUNT_SIZE, + )?; Ok(()) } @@ -240,7 +255,12 @@ where dest_weight_limit, }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch( + handle, + Some(origin).into(), + call, + SYSTEM_ACCOUNT_SIZE, + )?; Ok(()) } @@ -299,7 +319,12 @@ where dest_weight_limit, }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch( + handle, + Some(origin).into(), + call, + SYSTEM_ACCOUNT_SIZE, + )?; Ok(()) } @@ -353,7 +378,12 @@ where dest_weight_limit, }; - RuntimeHelper::::try_dispatch(handle, Some(origin).into(), call, 0)?; + RuntimeHelper::::try_dispatch( + handle, + Some(origin).into(), + call, + SYSTEM_ACCOUNT_SIZE, + )?; Ok(()) }