From 587f1f7f419ddfa34b64f48652051cce1ab2fe1f Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Thu, 31 Oct 2024 11:05:18 +0100 Subject: [PATCH] fix(wallet)_: use correct amount for erc1155 path processors --- services/wallet/transfer/transaction_manager_route.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/wallet/transfer/transaction_manager_route.go b/services/wallet/transfer/transaction_manager_route.go index f885d7374..acabf76c9 100644 --- a/services/wallet/transfer/transaction_manager_route.go +++ b/services/wallet/transfer/transaction_manager_route.go @@ -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() { - sendArgs.Value = (*hexutil.Big)(big.NewInt(0)) + + if path.ProcessorName != pathprocessor.ProcessorERC1155Name { + sendArgs.Value = (*hexutil.Big)(big.NewInt(0)) + } if path.ProcessorName == pathprocessor.ProcessorTransferName || path.ProcessorName == pathprocessor.ProcessorStickersBuyName ||