hashgraph / hedera-sdk-reference

Hedera SDK specification repository.
Apache License 2.0
6 stars 1 forks source link

Add doc reference HIP-844 #149

Open SimiHunjan opened 9 months ago

SimiHunjan commented 9 months ago

Problem

HIP: https://hips.hedera.com/hip/hip-844

Protobuf PR: https://github.com/hashgraph/hedera-protobufs/pull/312

Introduce rules for when to update an Ethereum transaction signer’s nonce and a new field for externalising the nonce update in the record stream. This will help resolve issues where the Consensus nodes and the Mirror nodes are out of sync in regards to what the current value of an account’s nonce is.

message ContractFunctionResult {

    [...]

    /**
     * If not null this field specifies what the value of the signer account nonce is post transaction execution. 
     * For transactions that don't update the signer nonce (like HAPI ContractCall and ContractCreate transactions) this field should be null.
     */
    Int64Value signer_nonce = 15;
}

Solution

Add doc for signer_nonce

Alternatives

No response

### SDKs
- [ ] https://github.com/hashgraph/hedera-sdk-js/issues/2108
- [ ] https://github.com/hashgraph/hedera-sdk-java/issues/1714
- [ ] https://github.com/hashgraph/hedera-sdk-go/issues/863
- [ ] https://github.com/hashgraph/hedera-sdk-cpp/issues/651
- [ ] https://github.com/hashgraph/hedera-sdk-rust/issues/758
- [ ] https://github.com/hashgraph/hedera-sdk-swift/issues/326
SimiHunjan commented 9 months ago

New APIs

None!

Updated APIs

ContractFunctionResult

int64 signerNonce: The value of the signer account nonce.

Example

ContractFunctionResult cfr;
cfr.signerNonce = 1;