Skip to content

Commit

Permalink
feat: fix parser err
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Nov 25, 2023
1 parent cc4d93b commit e05f742
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions parser/parser_dp/action_transfer_dp.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,15 @@ func (p *ParserDP) ActionTransferDP(req FuncTransactionHandleReq, pc *parser_com
//
var txDPInfoOfUser core.TxDPInfo
for k, v := range dpInputs {
txDPInfoOfUser = core.TxDPInfo{
AlgId: v.AlgId,
SubAlgId: v.SubAlgId,
Payload: v.Payload,
AmountDP: v.AmountDP,
Args: v.Args,
}
if item, ok := dpOutputs[k]; ok {
v.AmountDP -= item.AmountDP
txDPInfoOfUser = v
txDPInfoOfUser.AmountDP -= item.AmountDP
break
}
}
Expand Down

0 comments on commit e05f742

Please sign in to comment.