Skip to content

Fix: Rename withdrawal_id to withdrawal-id#255

Merged
jbencin merged 1 commit intohirosystems:masterfrom
jbencin:fix/rename-withdrawal-id
Apr 13, 2023
Merged

Fix: Rename withdrawal_id to withdrawal-id#255
jbencin merged 1 commit intohirosystems:masterfrom
jbencin:fix/rename-withdrawal-id

Conversation

@jbencin
Copy link
Copy Markdown
Contributor

@jbencin jbencin commented Apr 12, 2023

Description

Rename withdrawal_id to withdrawal-id, because we should be consistently using kebab-case for Clarity values

Applicable issues

Additional info (benefits, drawbacks, caveats)

I'm not sure if the following lines in http.rs should be changed also:

HttpRequestType::GetWithdrawalStx { .. } => {
    "/v2/withdrawal/stx/:block-height/:sender/:withdrawal_id/:amount"
}
HttpRequestType::BlockProposal(..) => PATH_STR_POST_BLOCK_PROPOSAL,
HttpRequestType::GetWithdrawalFt { .. } => {
    "/v2/withdrawal/ft/:block-height/:sender/:withdrawal_id/:contract_address/:contract_name/:amount"
}
HttpRequestType::GetWithdrawalNft { .. } => {
    "/v2/withdrawal/nft/:block-height/:sender/:withdrawal_id/:contract_address/:contract_name/:id"
}

I don't understand this syntax and have no idea what it means

Checklist

  • Test coverage for new or modified code paths
  • Changelog is updated
  • Required documentation changes (e.g., docs/rpc/openapi.yaml and rpc-endpoints.md for v2 endpoints, event-dispatcher.md for new events)
  • New clarity functions have corresponding PR in clarity-benchmarking repo
  • New integration test(s) added to bitcoin-tests.yml

@jbencin jbencin force-pushed the fix/rename-withdrawal-id branch from 04001f5 to a1e6526 Compare April 12, 2023 14:11
@jbencin jbencin changed the title Fix: Rename withdrawal_id to withdrawal-id` Fix: Rename withdrawal_id to withdrawal-id Apr 12, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2023

Codecov Report

Merging #255 (6a858cc) into master (a762f8f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #255   +/-   ##
=======================================
  Coverage   93.47%   93.47%           
=======================================
  Files           6        6           
  Lines         337      337           
=======================================
  Hits          315      315           
  Misses         22       22           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jbencin jbencin force-pushed the fix/rename-withdrawal-id branch from a1e6526 to 6a858cc Compare April 12, 2023 20:28
@jbencin jbencin marked this pull request as ready for review April 12, 2023 22:48
@jbencin jbencin requested a review from obycode April 12, 2023 22:48
Copy link
Copy Markdown
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

lgtm!

@jbencin jbencin merged commit 37652e7 into hirosystems:master Apr 13, 2023
@jbencin jbencin deleted the fix/rename-withdrawal-id branch April 18, 2023 19:13
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.

Use withdrawal-id instead of withdrawal_id in events

2 participants