-
Notifications
You must be signed in to change notification settings - Fork 124
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
Can't parse a tx (Any). Get a signature error #151
Comments
Adding the tx bytes (
|
Right now it's using I'd suggest changing that to be |
tony-iqlusion
added a commit
that referenced
this issue
Jan 6, 2022
Adds a `SignatureBytes` type alias for `Vec<u8>`, and changes `Tx::signatures` to `Vec<SignatureBytes>`. Previously signatures were being eagerly parsed as `secp256k1::Signature`, but this prevents parsing other kinds of signatures, such as Amino. Closes #151
tony-iqlusion
added a commit
that referenced
this issue
Jan 7, 2022
Adds a `SignatureBytes` type alias for `Vec<u8>`, and changes `Tx::signatures` to `Vec<SignatureBytes>`. Previously signatures were being eagerly parsed as `secp256k1::Signature`, but this prevents parsing other kinds of signatures, such as Amino. Closes #151
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Upgrade to cosmos
v0.3
, and now when trying to parse atx
I'm getting a signature errorThis line is where the error is thrown https://github.com/andynog/cosmrs-tx-example/blob/0f25f3e00cfbff3367e451098809d9739d3c77ca/src/main.rs#L52
When running I get:
the
TxResponse
has atx
property that is anOption<Any>
, so I try to get the value as byteslet tx_result = Tx::from_bytes(tx.value.as_slice());
So it is most likely failing to decode the bytes into the Tx proto in the code below ?
Here's the transactions details (with bytes at the end):
The text was updated successfully, but these errors were encountered: