-
Notifications
You must be signed in to change notification settings - Fork 12
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 entry RPC and fixes #116
Conversation
…add testing to rpc and event changes in l1_observer_test
Codecov Report
@@ Coverage Diff @@
## master #116 +/- ##
==========================================
+ Coverage 78.09% 78.23% +0.13%
==========================================
Files 261 262 +1
Lines 171195 171344 +149
==========================================
+ Hits 133696 134050 +354
+ Misses 37499 37294 -205
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
node ./publish_tx.js ft-trait-standard ../contracts/ft-trait-standard.clar 0 > ../transactions/ft-publish.hex | ||
node ./publish_tx.js nft-trait-standard ../contracts/nft-trait-standard.clar 1 > ../transactions/nft-publish.hex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when my nft use case integration test pr merges, I'll update these instructions
clarity/src/vm/events.rs
Outdated
@@ -339,6 +342,7 @@ impl NFTWithdrawEventData { | |||
"sender": format!("{}",self.sender), | |||
"value": self.value, | |||
"raw_value": format!("0x{}", raw_value.join("")), | |||
"withdrawal_id": self.withdrawal_id.unwrap_or(0), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if it makes sense to default to 0 in these serializations here (since 0 is a valid id)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched these methods in 30cca56 to return Option
s, so that the caller can choose to either error or panic.
This PR:
withdrawal_id
in withdrawal events #115)RunTenure
directive in theneon_node
: the miner always mines off of the burnchain tip when it receives a directive, so it does not need to be passed via the directive channel.