From 76b38ca04f30ccc4840bf1715777cb8387936e57 Mon Sep 17 00:00:00 2001 From: Jesse Schulman Date: Sat, 19 Oct 2024 15:03:09 -0700 Subject: [PATCH] Fixes for testnet --- .gitignore | 1 + translator/src/block.rs | 4 ++-- translator/src/main.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1499a97..66924a2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .idea /target config.toml +translator-config.toml *.csv *.log *.pid diff --git a/translator/src/block.rs b/translator/src/block.rs index ff339f2..0d3afd0 100644 --- a/translator/src/block.rs +++ b/translator/src/block.rs @@ -265,7 +265,7 @@ impl ProcessingEVMBlock { let action_account = action.action_account(); let action_receiver = action.receiver(); - if action_account == EOSIO_EVM && action_name == INIT { + if action_account == EOSIO_EVM && action_name == INIT && !self.skip_raw_action { let config_delta_row = self .find_config_row() .expect("Table delta for the init action not found"); @@ -312,7 +312,7 @@ impl ProcessingEVMBlock { self.add_transaction(transaction); } else if action_account == EOSIO_TOKEN && action_name == TRANSFER - && action_receiver == EOSIO_EVM + && action_receiver == EOSIO_TOKEN { // Deposit/transfer to EVM let transfer_action: TransferAction = decode(&action.data()); diff --git a/translator/src/main.rs b/translator/src/main.rs index 710f7d2..a96ba22 100644 --- a/translator/src/main.rs +++ b/translator/src/main.rs @@ -6,7 +6,7 @@ use tracing::error; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] struct Args { - #[arg(long, default_value = "config.toml")] + #[arg(long, default_value = "translator-config.toml")] config: String, }