Skip to content

Commit

Permalink
Fixes for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Oct 19, 2024
1 parent d2b29a8 commit 76b38ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
/target
config.toml
translator-config.toml
*.csv
*.log
*.pid
4 changes: 2 additions & 2 deletions translator/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion translator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit 76b38ca

Please sign in to comment.