@@ -11,6 +11,7 @@ import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers';
1111import {
1212 Token ,
1313 Profile ,
14+ ProfileStorage ,
1415 Staking ,
1516 Chronos ,
1617 RandomSamplingStorage ,
@@ -198,6 +199,8 @@ export async function buildInitialRewardsState() {
198199 askStorage : await hre . ethers . getContract < AskStorage > ( 'AskStorage' ) ,
199200 parametersStorage :
200201 await hre . ethers . getContract < ParametersStorage > ( 'ParametersStorage' ) ,
202+ profileStorage :
203+ await hre . ethers . getContract < ProfileStorage > ( 'ProfileStorage' ) ,
201204 } ;
202205
203206 const accounts = {
@@ -640,6 +643,7 @@ export async function buildInitialRewardsState() {
640643 return {
641644 Token : contracts . token ,
642645 Profile : contracts . profile ,
646+ ProfileStorage : contracts . profileStorage ,
643647 Staking : contracts . staking ,
644648 Chronos : contracts . chronos ,
645649 RandomSamplingStorage : contracts . randomSamplingStorage ,
@@ -678,9 +682,9 @@ describe('rewards tests', () => {
678682
679683 /* 2️⃣ Operator-fee sanity (all nodes @ 1000 ‱). */
680684 it ( 'every node stores 10 % operator fee' , async ( ) => {
681- const { Profile , nodes } = env ;
685+ const { ProfileStorage , nodes } = env ;
682686 for ( const n of nodes ) {
683- const opFee = await Profile . getOperatorFee ( n . identityId ) ;
687+ const opFee = await ProfileStorage . getOperatorFee ( n . identityId ) ;
684688 expect ( opFee ) . to . equal ( 1000 ) ; // 1000 ‱ == 10 %
685689 }
686690 } ) ;
0 commit comments