Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Sep 3, 2024
1 parent 1c4c293 commit 6a757cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions precompile/deposit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ pub struct Deposit<Runtime>(PhantomData<Runtime>);
impl<Runtime> Deposit<Runtime>
where
Runtime: darwinia_deposit::Config + pallet_evm::Config,
Runtime::RuntimeCall: Dispatchable<PostInfo = PostDispatchInfo> + GetDispatchInfo,
Runtime::RuntimeCall: From<darwinia_deposit::Call<Runtime>>,
Runtime::RuntimeCall: From<darwinia_deposit::Call<Runtime>>
+ Dispatchable<PostInfo = PostDispatchInfo>
+ GetDispatchInfo,
<Runtime as frame_system::Config>::AccountId: From<H160>,
<<Runtime as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin: OriginTrait,
<Runtime::RuntimeCall as Dispatchable>::RuntimeOrigin: From<Option<Runtime::AccountId>>,
AccountIdOf<Runtime>: From<H160>,
Expand Down Expand Up @@ -95,7 +97,7 @@ where
RuntimeHelper::<Runtime>::try_dispatch(
handle,
Some(origin).into(),
darwinia_deposit::Call::<Runtime>::migrate { who: who.into() },
darwinia_deposit::Call::<Runtime>::migrate { who: H160::from(who).into() },
)?;
Ok(true)
}
Expand Down

0 comments on commit 6a757cc

Please sign in to comment.