Skip to content

Conversation

@playX18
Copy link
Member

@playX18 playX18 commented Jan 14, 2026

Resolves #786

@gshep

@playX18 playX18 requested a review from gshep January 14, 2026 06:14
@playX18 playX18 self-assigned this Jan 14, 2026
@playX18 playX18 marked this pull request as ready for review January 14, 2026 09:58
Copy link
Member

@gshep gshep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! 🎸

Please remove commented code so we can test relayers on the testnet

transports::{ws::WsConnect, RpcError, TransportErrorKind},
};
use anyhow::{Context, Result as AnyResult};
//use subxt::utils::{H160, H256};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary anymore if I understand correctly? So the dependency in Cargo.toml

queue_id,
root,
},
) => Some((*queue_id, *root)),*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

/*gear_rpc_client::metadata::Event::GearEthBridge(
gear_rpc_client::metadata::gear_eth_bridge::Event::MessageQueued { message, .. },
) => Some(U256(message.nonce.0)),
) => Some(U256(message.nonce.0)),*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

destination: message.destination.0,
payload: message.payload.clone(),
})
}*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

if destination != ActorId(to_user.0) {
return None;
}*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

/// Fetch queue merkle root for the given block.
pub async fn fetch_queue_merkle_root(&self, block: H256) -> AnyResult<(u64, H256)> {
let block = (*self.api).blocks().at(block).await?;
/*let block = (*self.api).blocks().at(block).await?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove


pub async fn fetch_timestamp(&self, block: H256) -> AnyResult<u64> {
let block = (*self.api).blocks().at(block).await?;
/*let block = (*self.api).blocks().at(block).await?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

let address =
gsdk::Api::storage_root(gsdk::metadata::storage::GearEthBridgeStorage::QueueMerkleRoot);
let address = gsdk::gear::storage().gear_eth_bridge().queue_merkle_root();
//gsdk::Api::storage_root(gsdk::metadata::storage::GearEthBridgeStorage::QueueMerkleRoot);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove


pub mod dto;
pub mod metadata;
//pub mod metadata;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backport Gear 1.10.0

3 participants