Skip to content

Commit

Permalink
Fix valid_until (iov-one#319)
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Puchyr <dave@slim.avaritia.com>
  • Loading branch information
davepuchyr and Dave Puchyr authored Aug 14, 2020
1 parent fc9f639 commit e770115
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/genesis/data/dump
Submodule dump updated from 180c04 to dd648a
2 changes: 1 addition & 1 deletion scripts/genesis/data/iov-mainnet-2/config
Submodule config updated from bd9906 to 0703da
2 changes: 1 addition & 1 deletion scripts/genesis/data/premium
Submodule premium updated from de238a to 61616f
4 changes: 2 additions & 2 deletions scripts/genesis/lib/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const createStarname = ( args = {} ) => {
"name": args.name || "",
"owner": args.address || "",
"resources": resources,
"valid_until": String( new Date( "2020-10-01T00:00:00Z" ).getTime() / 1000 ), // just after listing date
"valid_until": String( new Date( "2021-10-01T00:00:00Z" ).getTime() / 1000 ), // one year from just after listing date
};

if ( args.iov1 ) template["//iov1"] = args.iov1;
Expand All @@ -133,7 +133,7 @@ export const createDomain = ( args = {} ) => {
"broker": null,
"name": args.domain,
"type": "closed",
"valid_until": String( args.valid_until || new Date( "2020-10-01T00:00:00Z" ).getTime() / 1000 ), // just after listing date
"valid_until": String( args.valid_until || new Date( "2021-10-01T00:00:00Z" ).getTime() / 1000 ), // one year from just after listing date
};

if ( args.iov1 ) template["//iov1"] = args.iov1;
Expand Down

0 comments on commit e770115

Please sign in to comment.