fix(wallet)_: use correct amount for erc1155 path processors
This commit is contained in:
parent
5d4838a752
commit
587f1f7f41
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue