Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The returned logs of a contract event are not of an event object #6312

Closed
Muhammad-Altabba opened this issue Jul 26, 2023 · 1 comment · Fixed by #6410
Closed

The returned logs of a contract event are not of an event object #6312

Muhammad-Altabba opened this issue Jul 26, 2023 · 1 comment · Fixed by #6410
Assignees
Labels
4.x 4.0 related Bug Addressing a bug Investigate

Comments

@Muhammad-Altabba
Copy link
Contributor

Muhammad-Altabba commented Jul 26, 2023

Investigate why the test "should return transaction hash, logs and receipt when using synchronised transactions" at https://github.com/nazarhussain/truffle/blob/656263aadf21612b17829483d7376eb7afbe63aa/packages/artifactor/test/contracts.js#L195 is failing with 4.x.

un-skip the test to investigate the error:
"AssertionError: expected 'ExampleEvent' to equal undefined"
The issue seems to be that the returned logs are not of an event.
(The returned log does not include the properties: event and args)

  logs: [
    {
      address: '0x608fcae953f6ecbb979bd670260fea9052a7e527',
      blockHash: '0x3a5f39352e0fd37c6a0b7870b16d585a10dde1fec30b0e1b64b6065caef5469a',
      blockNumber: 2n,
      logIndex: 0n,
      removed: false,
      transactionHash: '0xd9ad9f8a3d74c8bad000249977ec60d8313b2e4bbc389de06709a45cd5e0cb31',
      transactionIndex: 0n
    }
  ]
@jdevcs
Copy link
Contributor

jdevcs commented Aug 28, 2023

Related issue : #6351 should be fixed under this issue.

@avkos avkos mentioned this issue Sep 8, 2023
17 tasks
Muhammad-Altabba added a commit to nazarhussain/truffle that referenced this issue Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related Bug Addressing a bug Investigate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants