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

eth.getTransactionReceipt: contractAddress: Error: Cannot access member 'constructor' of null #1612

Closed
jorisbontje opened this issue Aug 7, 2015 · 2 comments
Assignees

Comments

@jorisbontje
Copy link

with geth 1.0.1 in the JS console (via geth attach):

> eth.getTransactionReceipt('0x9d3f3e5b651c3b4472eca4cd57db6549d474a23af182c768d418bd9e278195b5')
{
  blockHash: '0x35803048a469e86a0e9df1641ddf84a237aad0b4c0702ee9b99e1035afc992f0',
  blockNumber: 47527,
  contractAddress: Error: Cannot access member 'constructor' of null,
  cumulativeGasUsed: 21000,
  gasUsed: 21000,
  logs: [ ],
  transactionHash: '0x9d3f3e5b651c3b4472eca4cd57db6549d474a23af182c768d418bd9e278195b5',
  transactionIndex: 0
}

I don't expect to see the error message contractAddress: Error: Cannot access member 'constructor' of null,, but probably null, 0x or something similar if no contractAddress is involved.

@obscuren
Copy link
Contributor

obscuren commented Aug 7, 2015

Output error. Will be fixed, thanks.

@fjl fjl self-assigned this Aug 11, 2015
fjl added a commit that referenced this issue Aug 12, 2015
PR #856 broke command line editing by wrapping stdout with a filter that
interprets ANSI escape sequences to fix colored printing on windows.
Implement the printer in Go instead so it can do its own
platform-dependent coloring.

As a nice side effect, the JS console is now noticeably more responsive
when printing results.

Fixes #1608
Fixes #1612
@jorisbontje
Copy link
Author

Seems fixed in 1.1.1

tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this issue Jan 20, 2022
This was added in PR ethereum#317 but was never set in `vm.NewEVMContext()`.  As a result, it was always nil.  After the refactoring of contract calls to use the vm.EVMRunner types, we now don't use it outside of eth/api_tracer.go.  And the use there is now broken because the field is nil: when tracing a transaction or block the `vmRunner` created for the contract calls will use the header and state from the current chain head rather than from the specified block.  This fixes that by removing the field and updating the tracing code to not use it either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants