Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ private async Task ProcessRequestAsync(ITronTransactionQueueRepository repo, Tro
var trainContract = Network.Contracts.FirstOrDefault(c => c.Type == "Train")
?? throw new InvalidOperationException($"No Train contract configured on {_networkSlug}");

var callValue = request.Payload is TxPayload.Lock l && IsNativeToken(l.Request.TokenContract)
? BigInteger.Parse(l.Request.Amount) : BigInteger.Zero;
var callValue = BigInteger.Parse(calldata.Amount ?? "0");

unsignedTx = await tronTxService.BuildHTLCTransactionAsync(new TronBuildHTLCTransactionRequest
{
Expand Down
Loading