Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-kaufman committed Dec 13, 2020
1 parent 2b7ebf2 commit 65a63c3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/domain/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ export function updateProposalExecution(
): void {
let proposal = getProposal(proposalId.toHex());
proposal.executedAt = timestamp;
// Setting the closingAt field to a far away point in the future so it will be easy to
// Setting the closingAt field to a far away point in the future so it will be easy to
// sort all proposal(open and executed) in ascending order by the closingAt field
const CLOSING_AT_TIME_INCREASE = 1500000000
const CLOSING_AT_TIME_INCREASE = 1500000000;
proposal.closingAt = timestamp.plus(BigInt.fromI32(CLOSING_AT_TIME_INCREASE));
if (totalReputation != null) {
proposal.totalRepWhenExecuted = totalReputation;
Expand Down
2 changes: 1 addition & 1 deletion test/0.0.1-rc.16/domain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ describe('Domain Layer', () => {
createdAt: p1Creation.toString(),
boostedAt: v2Timestamp.toString(),
quietEndingPeriodBeganAt: null,
closingAt: (parseInt(v5Timestamp) + 1500000000).toString(),
closingAt: (parseInt(v5Timestamp, 10) + 1500000000).toString(),
executedAt: v5Timestamp.toString(),
totalRepWhenExecuted: totalRep,
totalRepWhenCreated: totalRep,
Expand Down
2 changes: 1 addition & 1 deletion test/0.0.1-rc.19/domain.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ describe('Domain Layer', () => {
createdAt: p1Creation.toString(),
boostedAt: v2Timestamp.toString(),
quietEndingPeriodBeganAt: null,
closingAt: (parseInt(v5Timestamp) + 1500000000).toString(),
closingAt: (parseInt(v5Timestamp, 10) + 1500000000).toString(),
executedAt: v5Timestamp.toString(),
totalRepWhenExecuted: totalRep,
totalRepWhenCreated: totalRep,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { nullAddress } from '../0.0.1-rc.16/util';
import {
getArcVersion,
getContractAddresses,
getOptions,
getWeb3,
increaseTime,
nullAddress,
sendQuery,
waitUntilTrue,
writeProposalIPFS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { nullAddress } from '../0.0.1-rc.16/util';
import {
getArcVersion,
getContractAddresses,
Expand Down
6 changes: 3 additions & 3 deletions test/0.0.1-rc.51/util.ts → test/0.0.1-rc.52/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export async function getWeb3() {

export function getContractAddresses() {
const addresses = require(`@daostack/migration/migration.json`);
let arcVersion = '0.0.1-rc.51';
let arcVersion = '0.0.1-rc.52';
return {
...addresses.private.test[arcVersion],
...addresses.private.dao[arcVersion],
Expand All @@ -70,12 +70,12 @@ export function getContractAddresses() {
}

export function getArcVersion() {
return '0.0.1-rc.51';
return '0.0.1-rc.52';
}

export function getOrgName() {
return require(`@daostack/migration/migration.json`).private.dao[
'0.0.1-rc.51'
'0.0.1-rc.52'
].name;
}

Expand Down

0 comments on commit 65a63c3

Please sign in to comment.