Skip to content

Commit

Permalink
Update antelope client for send transaction resposne parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Oct 13, 2024
1 parent 9ac1e19 commit 972b206
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 45 deletions.
44 changes: 6 additions & 38 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ reth-node-telos = { path = "crates/telos/node" }
reth-telos-rpc = { path = "crates/telos/rpc" }
reth-telos-primitives-traits = { path = "crates/telos/primitives-traits" }
reth-telos-rpc-engine-api = { path = "crates/telos/rpc-engine-api" }
antelope-client = { git = "https://github.com/telosnetwork/antelope-rs", branch = "finish_table_rows_params" }
antelope-client = { git = "https://github.com/telosnetwork/antelope-rs", branch = "development" }

[patch.crates-io]
#alloy-consensus = { git = "https://github.com/alloy-rs/alloy", rev = "8c499409"}
Expand Down
2 changes: 1 addition & 1 deletion crates/telos/node/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct TelosArgs {
#[arg(long = "telos.gas_cache_seconds")]
pub gas_cache_seconds: Option<u32>,

/// Enable the engine2 experimental features on reth binary
/// Enable the engine2 experimental features on telos-reth binary
#[arg(long = "engine.experimental", default_value = "false")]
pub experimental: bool,

Expand Down
8 changes: 4 additions & 4 deletions crates/telos/rpc-engine-api/src/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use alloy_primitives::{Address, B256, U256};
use revm_primitives::HashMap;
use revm::db::AccountStatus;
use revm::{Database, Evm, State, TransitionAccount};
use tracing::debug;
use reth_storage_errors::provider::ProviderError;
use crate::structs::{TelosAccountStateTableRow, TelosAccountTableRow};
use tracing::info;

/// This function compares the state diffs between revm and Telos EVM contract
pub fn compare_state_diffs<Ext, DB>(
Expand All @@ -27,9 +27,9 @@ where
{
let block_number = evm.block().number;

info!("{block_number} REVM State diffs: {:#?}", revm_state_diffs);
info!("{block_number} TEVM State diffs account: {:#?}", statediffs_account);
info!("{block_number} TEVM State diffs accountstate: {:#?}", statediffs_accountstate);
debug!("{block_number} REVM State diffs: {:#?}", revm_state_diffs);
debug!("{block_number} TEVM State diffs account: {:#?}", statediffs_account);
debug!("{block_number} TEVM State diffs accountstate: {:#?}", statediffs_accountstate);
}

let revm_db: &mut &mut State<DB> = evm.db_mut();
Expand Down
2 changes: 1 addition & 1 deletion crates/telos/rpc/src/eth/telos_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl TelosClient {
if telos_client_args.telos_endpoint.is_none() || telos_client_args.signer_account.is_none() || telos_client_args.signer_permission.is_none() || telos_client_args.signer_key.is_none() {
panic!("Should not construct TelosClient without proper TelosArgs with telos_endpoint and signer args");
}
let api_client = APIClient::<DefaultProvider>::default_provider(telos_client_args.telos_endpoint.unwrap().into()).unwrap();
let api_client = APIClient::<DefaultProvider>::default_provider(telos_client_args.telos_endpoint.unwrap().into(), Some(3)).unwrap();
let inner = TelosClientInner {
api_client,
signer_account: name!(&telos_client_args.signer_account.unwrap()),
Expand Down

0 comments on commit 972b206

Please sign in to comment.