Skip to content

Commit

Permalink
Fix TranceOps wrong native token issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquescaocb committed Sep 29, 2023
1 parent f545492 commit 4ac94fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func FeeOps(tx *evmClient.LoadedTransaction) []*RosettaTypes.Operation {
func TraceOps(
calls []*evmClient.FlatCall,
startIndex int,
native_currency *RosettaTypes.Currency,
) []*RosettaTypes.Operation { // nolint: gocognit
var ops []*RosettaTypes.Operation
if len(calls) == 0 {
Expand Down Expand Up @@ -250,7 +251,7 @@ func TraceOps(
},
Amount: &RosettaTypes.Amount{
Value: new(big.Int).Neg(trace.Value).String(),
Currency: sdkTypes.Currency,
Currency: native_currency,
},
Metadata: metadata,
}
Expand Down

0 comments on commit 4ac94fb

Please sign in to comment.