-
Notifications
You must be signed in to change notification settings - Fork 246
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
KernelProxy: emit SetApp event on construction #466
Conversation
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 to me.
test/helpers/decodeEvent.js
Outdated
const abi = require('web3-eth-abi') | ||
|
||
module.exports = { | ||
decodeEventsOfType: (receipt, eventAbi) => { |
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.
Wow, this is really nice! Way better than what I was doing here. I wonder if we could put it under @aragon/test-helpers
or some other place which makes it easy for reuse.
I also think it may be nice to add a wrapper with abi.filter(abi => abi.name === eventName && abi.type === 'event')[0]
, so just passing the receipt, the global abi and the event name is enough.
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.
Yes... we should migrate to @aragon/test-helpers
:D.
Will change the API to take in the abi too.
Allows a frontend to follow all `SetApp()` events emitted from the start of a KernelProxy's lifespan.
Fixes #457 by allowing a frontend to follow all
SetApp()
events emitted from the start of a KernelProxy's lifespan.