fix(wallet)_: use correct amount for erc1155 path processors

This commit is contained in:
Sale Djenic 2024-10-31 11:05:18 +01:00
parent 5d4838a752
commit 587f1f7f41
1 changed files with 4 additions and 1 deletions

View File

@ -164,7 +164,10 @@ func (tm *TransactionManager) buildTxForPath(path *routes.Path, pathProcessors m
// special handling for transfer tx if selected token is not ETH
// TODO: we should fix that in the trasactor, but till then, the best place to handle it is here
if !path.FromToken.IsNative() {
if path.ProcessorName != pathprocessor.ProcessorERC1155Name {
sendArgs.Value = (*hexutil.Big)(big.NewInt(0))
}
if path.ProcessorName == pathprocessor.ProcessorTransferName ||
path.ProcessorName == pathprocessor.ProcessorStickersBuyName ||