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

Stack overflow with liquidity pool operations #44

Closed
kaning opened this issue Apr 15, 2022 · 0 comments
Closed

Stack overflow with liquidity pool operations #44

kaning opened this issue Apr 15, 2022 · 0 comments

Comments

@kaning
Copy link
Contributor

kaning commented Apr 15, 2022

final input = XdrDataInputStream(base64Decode("AAAAAAAAAGT/////AAAAAQAAAAAAAAAW/////AAAAAA="));
final result = XdrTransactionResult.decode(input);
debugPrint(result.toString());

Executing this returns a stack overflow exception:

When the exception was thrown, this was the stack: 
#0      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:673:3)
#1      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:674:12)
#2      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:674:12)
#3      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:674:12)
#4      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:674:12)
#5      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:674:12)
#6      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:674:12)
#7      XdrOperationResultTr.liquidityPoolDepositResult= (package:stellar_flutter_sdk/src/xdr/xdr_operation.dart:674:12)
christian-rogobete added a commit that referenced this issue Apr 18, 2022
Fix stack overflow error caused by typo for issue #44
@kaning kaning closed this as completed Apr 18, 2022
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

No branches or pull requests

1 participant