diff --git a/test/integration/contract-aci.js b/test/integration/contract-aci.js index ad46186526..92615555b5 100644 --- a/test/integration/contract-aci.js +++ b/test/integration/contract-aci.js @@ -395,6 +395,17 @@ describe('Contract instance', function () { } }]) }) + + it('calls a contract that emits events with no defined events', async () => { + const contract = await sdk.getContractInstance({ + source: + 'contract FooContract =\n' + + ' entrypoint emitEvents(f: bool) = ()', + contractAddress: remoteContract.deployInfo.address + }) + const result = await contract.methods.emitEvents(false, { omitUnknown: true }) + expect(result.decodedEvents).to.be.eql([]) + }) }) describe('Arguments Validation and Casting', function () {