Skip to content

Commit

Permalink
saved time that swap was created in the system
Browse files Browse the repository at this point in the history
  • Loading branch information
bret-fusion committed Nov 28, 2018
1 parent 3126f37 commit 7886473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,4 +572,5 @@ type Swap struct {
MinToAmount *big.Int
SwapSize *big.Int
Targes []Address
Time *big.Int // Provides information for TIME
}
1 change: 1 addition & 0 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ func (st *StateTransition) handleFsnCall() error {
MinToAmount: makeSwapParam.MinToAmount,
SwapSize: makeSwapParam.SwapSize,
Targes: makeSwapParam.Targes,
Time : st.evm.Time,
}
if err := st.state.AddSwap(swap); err != nil {
return err
Expand Down

0 comments on commit 7886473

Please sign in to comment.