Skip to content

Commit

Permalink
Fix empty transfer initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanSerikov committed Feb 2, 2021
1 parent 3c39c20 commit 7e5b967
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions internal/models/transfer/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,18 @@ func (t *Transfer) LogFields() logrus.Fields {
// EmptyTransfer -
func EmptyTransfer(o operation.Operation) *Transfer {
return &Transfer{
ID: helpers.GenerateID(),
IndexedTime: o.IndexedTime,
Network: o.Network,
Contract: o.Destination,
Hash: o.Hash,
Status: o.Status,
Timestamp: o.Timestamp,
Level: o.Level,
Initiator: o.Source,
Counter: o.Counter,
Nonce: o.Nonce,
ID: helpers.GenerateID(),
IndexedTime: o.IndexedTime,
Network: o.Network,
Contract: o.Destination,
Hash: o.Hash,
Status: o.Status,
Timestamp: o.Timestamp,
Level: o.Level,
Initiator: o.Source,
AmountBigInt: big.NewInt(0),
Counter: o.Counter,
Nonce: o.Nonce,
}
}

Expand Down

0 comments on commit 7e5b967

Please sign in to comment.