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
It is not possible to retrieve a source asset in the PathPaymentOperationResponse class due to a bug in the code.
Below is the code snippet from that class:
There are two public methods getAsset() and getSourceAsset() in that class, which serve for getting an asset object. It is impossible to get the last one because of the incorrect if check in it:
if (this.sourceAssetCode.equals("native")) {
It checks for the asset code instead of the type for the source asset.
The code should probably be changed to (the same way as in the getAsset() method):
if (this.sourceAssetType.equals("native")) {
The text was updated successfully, but these errors were encountered:
It is not possible to retrieve a source asset in the PathPaymentOperationResponse class due to a bug in the code.
Below is the code snippet from that class:
There are two public methods getAsset() and getSourceAsset() in that class, which serve for getting an asset object. It is impossible to get the last one because of the incorrect if check in it:
It checks for the asset code instead of the type for the source asset.
The code should probably be changed to (the same way as in the getAsset() method):
The text was updated successfully, but these errors were encountered: