@@ -70,12 +70,11 @@ contract Deals is Ownable {
70
70
dealsAmount += 1 ;
71
71
72
72
//DealInfo memory info = DealInfo(_benchmarks, _supplierID, _consumerID, _masterID, _askID, _bidID, __bidID);
73
- //StoreA(_benchmarks, _supplierID, _consumerID, _masterID, _askID, _bidID, _startTime);
74
73
//DealParams memory params = DealParams(_duration, _price, _endTime, _status, _blockedBalance, _totalPayout, _lastBillTS);
75
- //StoreB(_duration, _price, _endTime, _status, _blockedBalance, _totalPayout, _lastBillTS);
76
-
77
74
78
75
76
+ // only one way not fall into stack error
77
+
79
78
deals[dealsAmount].info.benchmarks = _benchmarks;
80
79
deals[dealsAmount].info.supplierID = _supplierID;
81
80
deals[dealsAmount].info.consumerID = _consumerID;
@@ -95,31 +94,7 @@ contract Deals is Ownable {
95
94
return dealsAmount;
96
95
}
97
96
98
- /* function StoreA(
99
- uint64[] _benchmarks,
100
- address _supplierID,
101
- address _consumerID,
102
- address _masterID,
103
- uint _askID,
104
- uint _bidID,
105
- uint _startTime
106
- ) internal {
107
- deals[dealsAmount] = Deal(DealInfo(_benchmarks, _supplierID, _consumerID, _masterID, _askID, _bidID, _startTime),)
108
- }
109
-
110
- function StoreA(
111
- uint _duration,
112
- uint _price,,
113
- uint _endTime,
114
- DealStatus _status,
115
- uint _blockedBalance,
116
- uint _totalPayout,
117
- uint _lastBillTS
118
- ) interna; {
119
- deals[dealsAmount] = Deal(,DealParams(_duration, _price, _endTime, _status, _blockedBalance, _totalPayout, _lastBillTS));
120
-
121
97
122
- } */
123
98
124
99
125
100
0 commit comments