Skip to content

fix: use {{key}} instead of {{key.public_key}} in SaveAccount test inputs#542

Open
Kubudak90 wants to merge 1 commit into
coinbase:masterfrom
Kubudak90:fix/save-account-keypair-tests
Open

fix: use {{key}} instead of {{key.public_key}} in SaveAccount test inputs#542
Kubudak90 wants to merge 1 commit into
coinbase:masterfrom
Kubudak90:fix/save-account-keypair-tests

Conversation

@Kubudak90

Copy link
Copy Markdown

Fixes #451

Problem

The SaveAccount test inputs in coordinator_test.go and worker_test.go were incorrectly referencing {{key.public_key}} for the keypair field. However, SaveAccountInput.KeyPair is of type *keys.KeyPair, not *types.PublicKey.

Fix

Changed {{key.public_key}} to {{key}} in all affected test inputs to pass the full keypair object, consistent with how dsl_test.go already handles this correctly.

…puts

SaveAccountInput.KeyPair is of type *keys.KeyPair, not *types.PublicKey.
The test inputs were incorrectly referencing {{key.public_key}} when they
should reference {{key}} to pass the full keypair.

Fixes coinbase#451
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant