Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Handle nonce-less account creation #42

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

knkski
Copy link
Contributor

@knkski knkski commented Jul 3, 2018

When attempting to grab the nonce associated with an account during account creation, Client.Get will return nil, nil due to the account not yet existing. This PR updates Client.LookupAccountNonce to handle that scenario and default to 0 for the nonce instead.

Signed-off-by: Kenneth Koski knkski@bitwise.io

When attempting to grab the nonce associated with an account during
account creation, `Client.Get` will return `nil, nil` due to the
account not yet existing. This PR updates `Client.LookupAccountNonce`
to handle that scenario and default to `0` for the nonce instead.

Signed-off-by: Kenneth Koski <knkski@bitwise.io>
@dplumb94 dplumb94 merged commit 1aae009 into hyperledger-archives:master Jul 10, 2018
@knkski knkski deleted the fix-stl-959 branch July 10, 2018 18:23
knkski pushed a commit to knkski/sawtooth-seth that referenced this pull request Jul 11, 2018
This PR is a followup on hyperledger-archives#42, and adds an integration test to prevent a
regression.

Signed-off-by: Kenneth Koski <knkski@bitwise.io>
@knkski knkski mentioned this pull request Jul 11, 2018
knkski pushed a commit to knkski/sawtooth-seth that referenced this pull request Jul 12, 2018
This PR is a followup on hyperledger-archives#42, and adds an integration test to prevent a
regression.

Signed-off-by: Kenneth Koski <knkski@bitwise.io>
knkski pushed a commit to knkski/sawtooth-seth that referenced this pull request Jul 12, 2018
This PR is a followup on hyperledger-archives#42, and adds an integration test to prevent a
regression.

Signed-off-by: Kenneth Koski <knkski@bitwise.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants