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

fix: add nil handling for BabbageTransactionOutput Utxorpc() #668

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

verbotenj
Copy link
Contributor

include unit tests

DatumHash []byte
}

func TestUtxorpc_DatumOptionNil(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep the test names prefixed with the object type, since all tests under ledger/ are in the same namespace. This should be something like TestBabbageTransactionOutput_Utxorpc_DatumOptionNil

assert.Equal(t, uint64(1000), txOutput.Coin)
}

func TestDatumHashReturnsNil(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@verbotenj verbotenj force-pushed the feat/add-test-babbage-utxrpc branch from b64f93f to 1e255e7 Compare July 11, 2024 19:08
@verbotenj verbotenj merged commit 4b9ba36 into main Jul 11, 2024
8 checks passed
@verbotenj verbotenj deleted the feat/add-test-babbage-utxrpc branch July 11, 2024 19:14
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

Successfully merging this pull request may close these issues.

2 participants