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

Property 'status' does not exist on type 'TransactionReceipt'. #2287

Closed
e00dan opened this issue Feb 1, 2019 · 4 comments
Closed

Property 'status' does not exist on type 'TransactionReceipt'. #2287

e00dan opened this issue Feb 1, 2019 · 4 comments
Assignees
Labels
Types Incorrect or missing types

Comments

@e00dan
Copy link

e00dan commented Feb 1, 2019

Expected behavior

Property status will exist on type TransactionReceipt.

Type TransactionReceipt imported from:

import { TransactionReceipt } from 'web3/node_modules/web3-core';

const receipt : TransactionReceipt;
receipt.status // error

This is breaking change, because beta.37 contained it, when used with @types package.

Actual behavior

Property status missing in type TransactionReceipt

Steps to reproduce the behavior

  1. [First step]
  2. [Second step]
  3. [and so on...]

Error Logs

Property 'status' does not exist on type 'TransactionReceipt'.

Versions

Node 8.12.0
NPM 6.4.1
Web3 1.0.0-beta.40
Windows 10

error

@joshstevens19 joshstevens19 added the Types Incorrect or missing types label Feb 1, 2019
@joshstevens19
Copy link
Contributor

joshstevens19 commented Feb 1, 2019

Hey @kuzirashi Thanks for spotting this and raising it. I have put a PR to fix this issue here:

#2288

It will be released next week (probably Monday).

Oh and FYI (sorry you probably know this)

import { TransactionReceipt } from 'web3-core'; will work as well :)

Thanks

@e00dan
Copy link
Author

e00dan commented Feb 1, 2019

Didn't know it works. Will test. Thank you @joshstevens19

@joshstevens19
Copy link
Contributor

when i said it will work i meant the syntax i think is cleaner like that rather then web3/node_modules/web3-core. The fix for this status will be in the next release 👍 cheers.

@joshstevens19 joshstevens19 self-assigned this Feb 1, 2019
@joshstevens19
Copy link
Contributor

Will close as fix is in the next release. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Types Incorrect or missing types
Projects
None yet
Development

No branches or pull requests

2 participants