diff --git a/contracts/integrations/test/framework/actors/pool_operator.ts b/contracts/integrations/test/framework/actors/pool_operator.ts index a49ea9df1a..6dcf643bea 100644 --- a/contracts/integrations/test/framework/actors/pool_operator.ts +++ b/contracts/integrations/test/framework/actors/pool_operator.ts @@ -102,7 +102,7 @@ export function PoolOperatorMixin(Base: TBase): TBase const assertion = invalidCreateStakingPoolAssertion(this.actor.deployment); while (true) { const operatorShare = Pseudorandom.integer( - stakingConstants.PPM + 1, + (stakingConstants.PPM as number) + 1, constants.MAX_UINT32, Distributions.Kumaraswamy(0.2, 0.2), ).toNumber(); @@ -137,7 +137,7 @@ export function PoolOperatorMixin(Base: TBase): TBase yield undefined; } else { const operatorShare = Pseudorandom.integer( - stakingPools[poolId].operatorShare + 1, + (stakingPools[poolId].operatorShare as number) + 1, constants.MAX_UINT32, Distributions.Kumaraswamy(0.2, 0.2), ).toNumber();