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

Withdrawal height #228

Merged
merged 2 commits into from
Mar 8, 2023
Merged

Withdrawal height #228

merged 2 commits into from
Mar 8, 2023

Conversation

obycode
Copy link
Member

@obycode obycode commented Mar 8, 2023

Return the block height of the withdrawal from the -withdraw? functions and add it to the print event.

obycode added 2 commits March 7, 2023 17:16
`stx-wtihdraw?`, `ft-withdraw?` and `nft-withdraw?` do not return any
meaningful value on success. When attempting to make a withdrawal, users
will need the block height in which the withdrawal occured in order to
perform the second stage of the withdraw (on the L1). This changeset
makes these withdraw functions return the block height for convenience.
In addition to returning the withdraw height from the `-withdraw?`
functions, this commit adds this height to the print event as well.
@codecov-commenter
Copy link

Codecov Report

Merging #228 (bb2d8b6) into master (e23b941) will increase coverage by 92.26%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff             @@
##           master     #228       +/-   ##
===========================================
+ Coverage        0   92.26%   +92.26%     
===========================================
  Files           0        6        +6     
  Lines           0      336      +336     
===========================================
+ Hits            0      310      +310     
- Misses          0       26       +26     
Impacted Files Coverage Δ
...contracts/contracts/helper/simple-nft-no-mint.clar 66.66% <0.00%> (ø)
core-contracts/contracts/subnet.clar 94.96% <0.00%> (ø)
core-contracts/contracts/helper/test-helpers.clar 100.00% <0.00%> (ø)
core-contracts/contracts/helper/simple-ft.clar 75.00% <0.00%> (ø)
core-contracts/contracts/multi-miner.clar 97.05% <0.00%> (ø)
core-contracts/contracts/helper/simple-nft.clar 73.33% <0.00%> (ø)

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

@obycode obycode requested a review from kantai March 8, 2023 16:31
@obycode obycode merged commit a948b97 into master Mar 8, 2023
@obycode obycode deleted the feat/withdrawal-height branch March 8, 2023 18:38
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.

3 participants