File tree Expand file tree Collapse file tree
packages/folks-router-js-sdk/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @folks-router/js-sdk " : patch
3+ ---
4+
5+ add check for asset close to
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ export function checkSwapTransactions(
3434 // send algo/asset
3535 if ( sendAssetTxn . rekeyTo !== undefined ) throw Error ( "Unexpected rekey" ) ;
3636 if ( sendAssetTxn . payment ?. closeRemainderTo !== undefined ) throw Error ( "Unexpected close remainder to" ) ;
37+ if ( sendAssetTxn . assetTransfer ?. closeRemainderTo !== undefined ) throw Error ( "Unexpected close remainder to" ) ;
3738 if ( encodeAddress ( sendAssetTxn . sender . publicKey ) !== userAddress ) throw Error ( "Incorrect sender" ) ;
3839 if ( sendAssetTxn . payment && encodeAddress ( sendAssetTxn . payment . receiver . publicKey ) !== folksRouterAddr . toString ( ) )
3940 throw Error ( "Incorrect receiver" ) ;
You can’t perform that action at this time.
0 commit comments