From ce2c477a45f80172dae2766eb9d89cb4370e526b Mon Sep 17 00:00:00 2001 From: yarkin Date: Thu, 31 Aug 2023 15:14:22 +0800 Subject: [PATCH] Missed file when commit. --- src/actions.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/actions.cpp b/src/actions.cpp index 8f325b7f..e902da17 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -411,9 +411,9 @@ void evm_contract::process_filtered_messages(const std::vector= min_fee, "min_fee not covered"); balances balance_table(get_self(), get_self().value); - const balance& receiver_account = balance_table.get(msg_v0.get_account_as_name().value, "receiver account is not open"); + const balance& handler_account = balance_table.get(it->handler.value, "handler account is not open"); - action(std::vector{}, msg_v0.get_account_as_name(), "onbridgemsg"_n, + action(std::vector{}, it->handler, "onbridgemsg"_n, bridge_message{ bridge_message_v0 { .receiver = msg_v0.get_account_as_name(), .sender = to_bytes(rawmsg.sender), @@ -423,7 +423,7 @@ void evm_contract::process_filtered_messages(const std::vector