Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Address Table Lookups in Token Transfers #11

Merged
merged 3 commits into from
Apr 3, 2025

Conversation

omkarshanbhag
Copy link
Collaborator

No description provided.

}
let program_key = i.program_id(self.message.static_account_keys()).to_string();
match program_key.as_str() {
SOL_SYSTEM_PROGRAM_KEY => {
let system_instruction: SystemInstruction = bincode::deserialize(&i.data)
.map_err(|_| "Could not parse system instruction")?;
if let SystemInstruction::Transfer { lamports } = system_instruction {
if accounts.len() != 2 {
if all_transaction_addresses.len() != 2 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I noticed we don't do this length comparison internally (https://github.com/tkhq/mono/blob/61524bf7bf828077ae49b9f56526bb1039073b16/src/rust/evm_parser/app/src/routes/solana.rs#L685-L696). Should we remove this condition here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmmm not sure why it's not there internally. We should keep it here but add it in there

Good catch. I'll make a PR for that

@omkarshanbhag omkarshanbhag requested a review from andrewkmin April 1, 2025 00:06
@omkarshanbhag omkarshanbhag merged commit c27d7f6 into main Apr 3, 2025
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.

2 participants