Skip to content

Commit

Permalink
Merge pull request oceanprotocol#862 from oceanprotocol/bug/fix_vesti…
Browse files Browse the repository at this point in the history
…ng_in_barge

remove hardcoded date for vesting0
  • Loading branch information
alexcos20 authored Mar 15, 2024
2 parents b429c91 + c515aa4 commit 3b11766
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = v2.0.3
current_version = v2.0.4
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oceanprotocol/contracts",
"version": "2.0.3",
"version": "2.0.4",
"description": "Ocean Protocol Smartcontracts",
"bugs": {
"url": "https://github.com/oceanprotocol/contracts/issues"
Expand Down
3 changes: 1 addition & 2 deletions scripts/deploy-contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,7 @@ async function main() {
);
const block = await provider.getBlock("latest")
const blockTimestamp = block.timestamp
const endDate = "2024-03-14"
const endDateUnix = parseInt(new Date(endDate).getTime() / 1000)
const endDateUnix = Math.floor(Date.now() / 1000) + 365*24*60*60
const vestingPeriod = endDateUnix - blockTimestamp
const deployVestingWallet0 = await VestingWallet0.connect(owner).deploy(addresses.Splitter, blockTimestamp, vestingPeriod, options)
await deployVestingWallet0.deployTransaction.wait();
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ocean-contracts
version = v2.0.3
version = v2.0.4
author = leucothia
author_email = [email protected]
description = 🐳 Ocean Protocol L1 - v4
Expand Down

0 comments on commit 3b11766

Please sign in to comment.