NexusMutual / smart-contracts

GNU General Public License v3.0
170 stars 62 forks source link

StakingPool storage data is not checked in fork tests #1157

Closed shark0der closed 4 months ago

shark0der commented 4 months ago

this.contractData.stakingPool is never populated hence never acually checked.

  it('Collect storage data before upgrade', async function () {
    const stakingPoolCount = (await this.stakingPoolFactory.stakingPoolCount()).toNumber();
    this.contractData = {
      individualClaims: { before: {}, after: {} },
      yieldTokenIncidents: { before: {}, after: {} },
      cover: { before: {}, after: {} },
      stakingPool: { before: {}, after: {} },
      stakingProducts: { before: {}, after: {} },
    };