hi sol folks , got some questions for you
background :
i am mocking smart contrct using smock library . and typically i am using their .setVariables() method to set some values into my defined variable . like here :
it.skip("should revert if the user's voucher balance is equal to zero", async () => {
await mockPMC.setVariable("userPoolInfo", {
'0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC' : {
1: {
cycle: '1',
phase: '1',
voucherBalance:'0',
assetBalance:toUnit(0),
rewardDebt:toUnit(0)
}
}
});
...
});
Here for the first 1 , i set it to be a static value since there are some issues with it , which i want it to be a dynamic key-value here , i.e. mockWethToken.addres , etc
as for each contract deployment , the address would be different ,
so wonder how we can set it dynamically here