Skip to content

Commit

Permalink
use evm context caller as origin when transfering from account
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoka committed Oct 17, 2023
1 parent 21a3672 commit 66eb6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/hydradx/src/evm/precompiles/multicurrency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ where
let to: H160 = input.read::<Address>()?.into();
let amount = input.read::<Balance>()?;

let origin = ExtendedAddressMapping::into_account_id(from);
let origin = ExtendedAddressMapping::into_account_id(handle.context().caller);
let to = ExtendedAddressMapping::into_account_id(to);

log::debug!(target: "evm", "multicurrency: transferFrom from: {:?}, to: {:?}, amount: {:?}", origin, to, amount);
Expand Down

0 comments on commit 66eb6dc

Please sign in to comment.