Skip to content

Commit

Permalink
Merge pull request #231 from oceanprotocol/feature/Orders_timestamps
Browse files Browse the repository at this point in the history
Use block.timestamp for orders logs
  • Loading branch information
0x3bfc authored Oct 1, 2020
2 parents b77e553 + 7c52c8b commit bde6d25
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/templates/DataTokenTemplate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ contract DataTokenTemplate is IERC20Template, ERC20 {
address indexed consumer,
uint256 amount,
uint256 serviceId,
uint256 startedAt,
uint256 timestamp,
address indexed mrktFeeCollector,
uint256 marketFee
);
Expand All @@ -44,7 +44,8 @@ contract DataTokenTemplate is IERC20Template, ERC20 {
address indexed consumer,
uint256 amount,
uint256 serviceId,
address indexed provider
address indexed provider,
uint256 timestamp
);

event MinterProposed(
Expand Down Expand Up @@ -241,7 +242,7 @@ contract DataTokenTemplate is IERC20Template, ERC20 {
msg.sender,
amount,
serviceId,
block.number,
block.timestamp,
mrktFeeCollector,
marketFee
);
Expand Down Expand Up @@ -276,7 +277,8 @@ contract DataTokenTemplate is IERC20Template, ERC20 {
consumer,
amount,
serviceId,
msg.sender
msg.sender,
block.timestamp
);
}

Expand Down

0 comments on commit bde6d25

Please sign in to comment.