Skip to content

Commit

Permalink
Read securityBlock from smart contract and expose
Browse files Browse the repository at this point in the history
it as createBlockNumber in Gaslessproposal
  • Loading branch information
emmdim committed Nov 3, 2023
1 parent b69f25a commit 50efffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/js-client/src/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function proposalParamsfromContract(
): GaslessProposalParametersStruct {
return {
censusBlock: params.censusBlock,
securityBlock: 0,
securityBlock: params.securityBlock.toNumber(),
startDate: new Date(Number(params.startDate) * 1000),
endDate: new Date(Number(params.endDate) * 1000),
expirationDate: new Date(Number(params.expirationDate) * 1000),
Expand Down Expand Up @@ -311,7 +311,7 @@ export function toNewProposal(
startDate,
endDate
),
creationBlockNumber: 0, //number; //TODO
creationBlockNumber: SCProposal.parameters?.securityBlock || 0, //number; //TODO
executionDate: null, //Date | null; //TODO
executionBlockNumber: null, //number | null; //TODO
executionTxHash: null, //string | null;
Expand Down

0 comments on commit 50efffb

Please sign in to comment.