@@ -67,7 +67,8 @@ describe('Staking:Allocation', () => {
6767 const allocate = async ( tokens : BigNumber ) => {
6868 return staking
6969 . connect ( indexer . signer )
70- . allocate (
70+ . allocateFrom (
71+ indexer . address ,
7172 subgraphDeploymentID ,
7273 tokens ,
7374 allocationID ,
@@ -206,7 +207,14 @@ describe('Staking:Allocation', () => {
206207 it ( 'reject allocate with invalid allocationID' , async function ( ) {
207208 const tx = staking
208209 . 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+ )
210218 await expect ( tx ) . revertedWith ( '!alloc' )
211219 } )
212220
@@ -273,7 +281,8 @@ describe('Staking:Allocation', () => {
273281 const invalidProof = await channelKey . generateProof ( randomHexBytes ( 20 ) )
274282 const tx = staking
275283 . connect ( indexer . signer )
276- . allocate (
284+ . allocateFrom (
285+ indexer . address ,
277286 subgraphDeploymentID ,
278287 tokensToAllocate ,
279288 indexer . address ,
@@ -286,7 +295,8 @@ describe('Staking:Allocation', () => {
286295 it ( 'invalid proof signature format' , async function ( ) {
287296 const tx = staking
288297 . connect ( indexer . signer )
289- . allocate (
298+ . allocateFrom (
299+ indexer . address ,
290300 subgraphDeploymentID ,
291301 tokensToAllocate ,
292302 indexer . address ,
@@ -631,7 +641,8 @@ describe('Staking:Allocation', () => {
631641 const allocationID2 = channelKey2 . address
632642 await staking
633643 . connect ( indexer . signer )
634- . allocate (
644+ . allocateFrom (
645+ indexer . address ,
635646 subgraphDeploymentID ,
636647 tokensToAllocate ,
637648 allocationID2 ,
@@ -682,7 +693,8 @@ describe('Staking:Allocation', () => {
682693 staking . connect ( indexer . signer ) . populateTransaction . closeAllocation ( allocationID , poi ) ,
683694 staking
684695 . connect ( indexer . signer )
685- . populateTransaction . allocate (
696+ . populateTransaction . allocateFrom (
697+ indexer . address ,
686698 subgraphDeploymentID ,
687699 tokensToAllocate ,
688700 newAllocationID ,
0 commit comments