@@ -67,7 +67,8 @@ describe('Staking:Allocation', () => {
67
67
const allocate = async ( tokens : BigNumber ) => {
68
68
return staking
69
69
. connect ( indexer . signer )
70
- . allocate (
70
+ . allocateFrom (
71
+ indexer . address ,
71
72
subgraphDeploymentID ,
72
73
tokens ,
73
74
allocationID ,
@@ -206,7 +207,14 @@ describe('Staking:Allocation', () => {
206
207
it ( 'reject allocate with invalid allocationID' , async function ( ) {
207
208
const tx = staking
208
209
. connect ( indexer . signer )
209
- . allocate ( subgraphDeploymentID , tokensToAllocate , AddressZero , metadata , randomHexBytes ( 20 ) )
210
+ . allocateFrom (
211
+ indexer . address ,
212
+ subgraphDeploymentID ,
213
+ tokensToAllocate ,
214
+ AddressZero ,
215
+ metadata ,
216
+ randomHexBytes ( 20 ) ,
217
+ )
210
218
await expect ( tx ) . revertedWith ( '!alloc' )
211
219
} )
212
220
@@ -273,7 +281,8 @@ describe('Staking:Allocation', () => {
273
281
const invalidProof = await channelKey . generateProof ( randomHexBytes ( 20 ) )
274
282
const tx = staking
275
283
. connect ( indexer . signer )
276
- . allocate (
284
+ . allocateFrom (
285
+ indexer . address ,
277
286
subgraphDeploymentID ,
278
287
tokensToAllocate ,
279
288
indexer . address ,
@@ -286,7 +295,8 @@ describe('Staking:Allocation', () => {
286
295
it ( 'invalid proof signature format' , async function ( ) {
287
296
const tx = staking
288
297
. connect ( indexer . signer )
289
- . allocate (
298
+ . allocateFrom (
299
+ indexer . address ,
290
300
subgraphDeploymentID ,
291
301
tokensToAllocate ,
292
302
indexer . address ,
@@ -631,7 +641,8 @@ describe('Staking:Allocation', () => {
631
641
const allocationID2 = channelKey2 . address
632
642
await staking
633
643
. connect ( indexer . signer )
634
- . allocate (
644
+ . allocateFrom (
645
+ indexer . address ,
635
646
subgraphDeploymentID ,
636
647
tokensToAllocate ,
637
648
allocationID2 ,
@@ -682,7 +693,8 @@ describe('Staking:Allocation', () => {
682
693
staking . connect ( indexer . signer ) . populateTransaction . closeAllocation ( allocationID , poi ) ,
683
694
staking
684
695
. connect ( indexer . signer )
685
- . populateTransaction . allocate (
696
+ . populateTransaction . allocateFrom (
697
+ indexer . address ,
686
698
subgraphDeploymentID ,
687
699
tokensToAllocate ,
688
700
newAllocationID ,
0 commit comments