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
Improve referenda precompile logs #2113
Conversation
# Conflicts: # precompiles/referenda/src/lib.rs
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.
Looks good on the principle. I'd like someone else to review the code
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.
the refunded Events should emit deposit.who instead of caller to match the substrate events
this tells us the recipient of the refunded deposit instead of the caller (they can be different)
Feel free to dismiss this review once addressed to merge this PR for the release
* Fix `submit_at` `submit_after` * Fix `place_decision_deposit` * Fix `refund_decision_deposit` * fmt * Add `refund_submission_deposit` log * Add `refund_submission_deposit` log test * fmt * Comments * Improve referendum index test for `submit_at/after` * clippy * Fix ts tests * Address suggestions
What does it do?
pallet-referenda
events:SubmittedAt
andSubmittedAfter
now include thereferendumIndex
instead theblockNumber
.DecisionDepositPlaced
andDecisionDepositRefunded
now includeindex
,caller
andamount
. Note: records extra db read.SubmissionDepositRefunded
log torefund_submission_deposit
precompile. Note: records extra db read.What important points reviewers should know?
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?