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(web3): try next web3 node on response error #1998

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Conversation

shamardy
Copy link
Collaborator

No description provided.

@shamardy shamardy added in progress Changes will be made from the author under review 1.1.0-beta and removed in progress Changes will be made from the author labels Oct 26, 2023
@shamardy shamardy requested review from cipig and laruh October 26, 2023 12:52
Copy link
Member

@laruh laruh left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes!
I have one note and question.

Note:
Your changes are well structured and look good to me. I just noticed that we have redundant cloning in previously merged code part.
Unnecessary clones for serialized_request, we can remove it.

// here in non wasm target
let mut req = http::Request::new(serialized_request.clone().into_bytes());

// and here in `send_request` wasm impl
match send_request_once(serialized_request.clone(), &node.uri

mm2src/coins/eth/web3_transport/http_transport.rs Outdated Show resolved Hide resolved
Copy link
Member

@laruh laruh left a comment

Choose a reason for hiding this comment

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

LGTM!

@shamardy shamardy merged commit 8276b7c into dev Oct 27, 2023
29 of 30 checks passed
@shamardy shamardy deleted the fix-evm-error-response branch October 27, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants