Unknown TransactionResult type
See original GitHub issueHi guys,
I found a bug. Did you base your code on one of the official SDKs that are maintained by the Stellar team? If so could you tell me which one it is. Then maybe I could add the code myself to speed up the process.
Describe the bug
When I execute a fee bump operation in my transaction and I read the Result
property I receive the following error:
Unknown TransactionResult type
at stellar_dotnet_sdk.responses.TransactionResult.FromXdr(TransactionResult result)
at stellar_dotnet_sdk.responses.TransactionResult.FromXdr(String encoded)
at stellar_dotnet_sdk.responses.SubmitTransactionResponse.get_Result()
...
To Reproduce The code to get this error is
public async Task<string> FeeBumpTransaction(Transaction transaction)
{
var feeBumpTransaction = TransactionBuilder.BuildFeeBumpTransaction(
_config.SignerKeyPair,
transaction,
_config.MaximumFee
);
feeBumpTransaction.Sign(_config.SignerKeyPair, Network);
var response = await Invoke(
Server.SubmitTransaction(feeBumpTransaction)!
).ConfigureAwait(false);
if (response!.IsSuccess())
{
return response.Hash;
}
var result = response.Result; // <<<---- HAPPENS HERE
...
}
The result can be checked here:
TransactionResult
feeCharged: 20006
result: [txFeeBumpInnerFailed]
innerResultPair
transactionHash: qtaF0b1+XhxJmwq+95jr0VmUCLUuv/8RR0fqFYzSOk0=
result
feeCharged: 100
result: [txFailed]
results: Array[1]
[0]: [opInner]
tr: [payment]
paymentResult: [paymentUnderfunded]
ext: [undefined]
ext: [undefined]
Expected behavior
I would expect the result to be of a type TransactionResultFeeBumpInnerFailed
or something like that.
Additional context The code is running on a .NET 7 Web API.
Issue Analytics
- State:
- Created 7 months ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Unknown enum value when decoding TransactionResult #67
According to the documentation for Stellar Core tx command, the error field is of type TransactionResult . So I'm trying to decode it...
Read more >TransactionResult (Yello API 1.0.5)
List of results that can be returned as part of the TransactionStatus class, representing the outcome of an EMV transaction.
Read more >errors - What is the best way to handle missing response ...
A transparent way to handle the situation is telling the user what actually happened, what are the options and the recommended next steps: ......
Read more >RESULT Values for Transaction Declines or Errors
Invalid tender type. Your merchant bank account does not support the following credit card type that was submitted. 3. Invalid transaction type. Transaction ......
Read more >RESULT Values for Transaction Declines or Errors
The transaction result displays the overall status of the transaction. The result associated with ... The transaction is coming from an unknown IP...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry my day job has been brutal lately, it’s still on my radar. Hopefully soon!
Ok, I will take a look.