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
{{ message }}
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.
In the handleMultiAssetMultiPartyCoinTransfer function within get-outcome-increments.ts, there is a strong assumption on the ordering of arguments supplied to the coinTransfer object in the state of the app.
For instance, this initial state supplied to SimpleSwapApp will result in an incorrect transfer:
returninterpreterParams.tokenAddresses.reduce((acc,tokenAddress,index)=>({
...acc,[tokenAddress]: convertCoinTransfersToCoinTransfersMap(decodedTransfers[index])}),{})```where the assumption is the `tokenAddress` intheinterpreterparameterswillhavethesameorderingasthetokensresultingfromthedecodedstate.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In the
handleMultiAssetMultiPartyCoinTransfer
function withinget-outcome-increments.ts
, there is a strong assumption on the ordering of arguments supplied to thecoinTransfer
object in the state of the app.For instance, this initial state supplied to
SimpleSwapApp
will result in an incorrect transfer:Sample logs from this error:
Whereas this initial state will result in a correct swap:
This comes from the following code:
The text was updated successfully, but these errors were encountered: