Skip to content

Commit

Permalink
correct sender account
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Aug 12, 2024
1 parent 329c861 commit e7a7ebe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/axelar-router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ pub mod pallet {

match config.domain {
DomainConfig::Evm(evm_config) => {
let sender_evm_address = H160::from_slice(&origin.address());
let sender_evm_address = H160::from_slice(&origin.address()[0..20]);

let message = wrap_into_axelar_msg(
message,
Expand Down
2 changes: 2 additions & 0 deletions runtime/common/src/routing.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use cfg_primitives::AccountId;
use cfg_traits::liquidity_pools::{MessageSender, RouterSupport};
use cfg_types::domain_address::{Domain, DomainAddress};
use frame_support::dispatch::DispatchResultWithPostInfo;
Expand All @@ -7,6 +8,7 @@ use sp_std::marker::PhantomData;
/// Identification of the router where the message is sent and received
/// RouterId is more specific than Domain, because RouterId also identify by
/// where the message is sent/received
#[derive(Debug, Encode, Decode, Clone, PartialEq, Eq, TypeInfo, MaxEncodedLen)]
pub enum RouterId {
/// The message must be sent/received by EVM using Axelar
Axelar(AxelarId),
Expand Down

0 comments on commit e7a7ebe

Please sign in to comment.