You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above piece of code (using version 0.6.0) is used to get a transaction from a TransactionResponse. It has been working fine at least before May 1st. But now it always gave the error "java.lang.RuntimeException: Unknown enum value: 2" at TransactionEnvelope.decode. I have tested the return result from transactionResponse.getEnvelopeXdr() on stellar lab, and it can get the transaction there. I am wondering whether this is due to some latest version update.
Thanks
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered:
@wumingmo you need to upgrade to the latest version of this library. This problem occurs because you are trying to read a transaction envelope from protocol 13.
What version are you using?
0.6.0
What did you do?
public Transaction getTransaction(TransactionResponse transactionResponse)
{
byte[] bytes = Base64.getDecoder().decode(transactionResponse.getEnvelopeXdr());
TransactionEnvelope transactionEnvelope = TransactionEnvelope.decode(new XdrDataInputStream(new ByteArrayInputStream(bytes)));
return transactionEnvelope.getTx();
}
The above piece of code (using version 0.6.0) is used to get a transaction from a TransactionResponse. It has been working fine at least before May 1st. But now it always gave the error "java.lang.RuntimeException: Unknown enum value: 2" at TransactionEnvelope.decode. I have tested the return result from transactionResponse.getEnvelopeXdr() on stellar lab, and it can get the transaction there. I am wondering whether this is due to some latest version update.
Thanks
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: