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

Fixed best_ethereum_block() call parameters encoding #188

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

svyatonik
Copy link
Contributor

There are two commits - first one is actually fixing issue - it changes runtime call params from Bytes("0x".into()) to Bytes(Vec::new()). Seems like there has been recent decoding-related change that has lead to 'Bad input data provided to best_block: Input buffer has still data left after decoding!' in cases when params buffer has extra data.

The second one is about updating/fixing references. I've changed that while trying to debug issue: (1) I've added missing tag = 'v2.0.0-rc4' to build dependencies and (2) changed explicit codec references to 1.3.1 in toml files (Cargo.lock was already pointing to that version). This is optional commit - seems that it affects nothing, but imo it is still helpful. Can revert on demand.

@tomusdrw tomusdrw merged commit d9365b1 into master Jul 14, 2020
@tomusdrw tomusdrw deleted the fix-empty-parameters-pass branch July 14, 2020 10:07
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Mar 27, 2024
* fixed best_ethereum_block() params encoding

* updated versions
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Apr 8, 2024
* fixed best_ethereum_block() params encoding

* updated versions
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