question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown TransactionResult type

See original GitHub issue

Hi 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:open
  • Created 7 months ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
elucidsoftcommented, Mar 6, 2023

Sorry my day job has been brutal lately, it’s still on my radar. Hopefully soon!

1reaction
elucidsoftcommented, Feb 23, 2023

Ok, I will take a look.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found