You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in this case, since the useActor(actorIndexSeed) results in the asset being minted to the currentActor.
The beforeBalance should be accounted for the currentActor and not for address(this).
Further, to make this test accurate, the minted shares should go to the the currentActor by setting them as the receiver.
And then the balance check should be performed on the currentActor as detailed below.
The chapter on invariant tests, Link
ends with the following block of code explaining how the actors are fuzzed.
However, in this case, since the
useActor(actorIndexSeed)
results in the asset being minted to thecurrentActor
.The
beforeBalance
should be accounted for thecurrentActor
and not foraddress(this)
.Further, to make this test accurate, the minted shares should go to the the
currentActor
by setting them as the receiver.And then the balance check should be performed on the
currentActor
as detailed below.Here's the corrected block of code.
The text was updated successfully, but these errors were encountered: