55 getWeb3 ,
66 increaseTime ,
77 nullParamsHash ,
8+ padZeros ,
89 sendQuery ,
910 waitUntilTrue ,
1011 writeProposalIPFS ,
@@ -56,6 +57,7 @@ describe('ContinuousLocking4Reputation', () => {
5657 let repRewardConstA = 85000 ;
5758 let repRewardConstB = 900 ;
5859 let periodsCap = 100 ;
60+ let agreementHash = '0x0000000000000000000000000000000000000000000000000000000000000001' ;
5961 const continuousLocking4ReputationCreateTx =
6062 continuousLocking4ReputationFactory . methods . createCL4R (
6163 addresses . Avatar ,
@@ -68,7 +70,7 @@ describe('ContinuousLocking4Reputation', () => {
6870 repRewardConstB ,
6971 periodsCap ,
7072 addresses . NativeToken ,
71- '0x0000000000000000000000000000000000000001' ,
73+ agreementHash ,
7274 ) ;
7375
7476 const continuousLocking4ReputationAddress = await continuousLocking4ReputationCreateTx . call ( ) ;
@@ -163,6 +165,7 @@ describe('ContinuousLocking4Reputation', () => {
163165 repRewardConstA
164166 repRewardConstB
165167 batchesIndexCap
168+ agreementHash
166169 }
167170 }
168171 }` ) ;
@@ -193,13 +196,14 @@ describe('ContinuousLocking4Reputation', () => {
193196 repRewardConstA : ( await continuousLocking4Reputation . methods . repRewardConstA ( ) . call ( ) ) ,
194197 repRewardConstB : ( await continuousLocking4Reputation . methods . repRewardConstB ( ) . call ( ) ) ,
195198 batchesIndexCap : periodsCap . toString ( ) ,
199+ agreementHash,
196200 } ,
197201 } ) ;
198202
199203 // // console.log(await continuousLocking4Reputation.methods.agreementHash().call());
200204 await daoToken . methods . approve ( continuousLocking4Reputation . options . address , 1 ) . send ( ) ;
201205
202- const { blockNumber } = await continuousLocking4Reputation . methods . lock ( 1 , 12 , 0 , '0x0000000000000000000000000000000000000001' ) . send ( ) ;
206+ const { blockNumber } = await continuousLocking4Reputation . methods . lock ( 1 , 12 , 0 , agreementHash ) . send ( ) ;
203207 const { timestamp } = await web3 . eth . getBlock ( blockNumber ) ;
204208 const locksQuery = `{
205209 cl4Rlocks {
0 commit comments