The Cadence testing framework would be telling me that there are 43 FungibleToken.Deposited events in a single mint transaction, when there should only be one. This error happens when using the FungibleToken contract that is deployed to the emulator by default. When deploying it manually and using that version (which is the same exact code), I see the correct 1 event.
Expected Behavior
FungibleToken.Deposited is the standard event that is emitted from a pre-condition every time a FungibleToken.Receiver.deposit() happens. This transaction is only doing one deposit, so the max it should emit is 2, 1 for the deposit in the transaction, and maybe one for tx fees.
Current Behavior
The Cadence testing framework would be telling me that there are 43 FungibleToken.Deposited events in a single mint transaction, when there should only be one. This error happens when using the
FungibleToken
contract that is deployed to the emulator by default. When deploying it manually and using that version (which is the same exact code), I see the correct 1 event.Expected Behavior
FungibleToken.Deposited
is the standard event that is emitted from a pre-condition every time aFungibleToken.Receiver.deposit()
happens. This transaction is only doing one deposit, so the max it should emit is 2, 1 for the deposit in the transaction, and maybe one for tx fees.Steps To Reproduce
cadence-1
branch from this repo.make test
.Testing this transaction.
with the FiatToken contract.
Environment