5
5
getWeb3 ,
6
6
increaseTime ,
7
7
nullParamsHash ,
8
+ padZeros ,
8
9
sendQuery ,
9
10
waitUntilTrue ,
10
11
writeProposalIPFS ,
@@ -56,6 +57,7 @@ describe('ContinuousLocking4Reputation', () => {
56
57
let repRewardConstA = 85000 ;
57
58
let repRewardConstB = 900 ;
58
59
let periodsCap = 100 ;
60
+ let agreementHash = '0x0000000000000000000000000000000000000000000000000000000000000001' ;
59
61
const continuousLocking4ReputationCreateTx =
60
62
continuousLocking4ReputationFactory . methods . createCL4R (
61
63
addresses . Avatar ,
@@ -68,7 +70,7 @@ describe('ContinuousLocking4Reputation', () => {
68
70
repRewardConstB ,
69
71
periodsCap ,
70
72
addresses . NativeToken ,
71
- '0x0000000000000000000000000000000000000001' ,
73
+ agreementHash ,
72
74
) ;
73
75
74
76
const continuousLocking4ReputationAddress = await continuousLocking4ReputationCreateTx . call ( ) ;
@@ -163,6 +165,7 @@ describe('ContinuousLocking4Reputation', () => {
163
165
repRewardConstA
164
166
repRewardConstB
165
167
batchesIndexCap
168
+ agreementHash
166
169
}
167
170
}
168
171
}` ) ;
@@ -193,13 +196,14 @@ describe('ContinuousLocking4Reputation', () => {
193
196
repRewardConstA : ( await continuousLocking4Reputation . methods . repRewardConstA ( ) . call ( ) ) ,
194
197
repRewardConstB : ( await continuousLocking4Reputation . methods . repRewardConstB ( ) . call ( ) ) ,
195
198
batchesIndexCap : periodsCap . toString ( ) ,
199
+ agreementHash,
196
200
} ,
197
201
} ) ;
198
202
199
203
// // console.log(await continuousLocking4Reputation.methods.agreementHash().call());
200
204
await daoToken . methods . approve ( continuousLocking4Reputation . options . address , 1 ) . send ( ) ;
201
205
202
- const { blockNumber } = await continuousLocking4Reputation . methods . lock ( 1 , 12 , 0 , '0x0000000000000000000000000000000000000001' ) . send ( ) ;
206
+ const { blockNumber } = await continuousLocking4Reputation . methods . lock ( 1 , 12 , 0 , agreementHash ) . send ( ) ;
203
207
const { timestamp } = await web3 . eth . getBlock ( blockNumber ) ;
204
208
const locksQuery = `{
205
209
cl4Rlocks {
0 commit comments