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

Contract nonce field is missing in the getContractInfo() query and we have no way to get the nonce of a contract #2192

Closed
anastasiya-kovaliova opened this issue Mar 12, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@anastasiya-kovaliova
Copy link

Description

In the Smart Contracts repo we need to get the nonce of a contract. We cannot track every transaction and search for the last nonce in it. We need to use the getContractInfo() query and get the contract nonce from it in the same way we are getting the account nonce field - EthereumNonce from the getAccountInfo() query.
Relevant documentations:

NOTE: this field is important for completing the tests for the account nonce discrepancies fiexs. Tests task: hashgraph/hedera-smart-contracts#677

Steps to reproduce

From the Smart Contracts project execute the getContractInfo() query and check the results returned.

Expected Result:
Contract nonce field should be present .

Actual Result:
No contract nonce field present.

Additional context

No response

Hedera network

mainnet

Version

2.42.0

Operating system

None

@SimiHunjan
Copy link
Contributor

The contract nonce field is not returned in contract get info query. Please see https://github.com/hashgraph/hedera-protobufs/blob/main/services/contract_get_info.proto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants