You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are creating a manual hookpoint here that is a hardcoded contract call. We will abstract this in the subsequent tickets, once we have this worked out.
After the token balance is calculated here, do the following:
check if the DAO owner address has a register_specific_ink_callback for the id ON_VOTING_CALC, if not check if the DAO owner address has a register_global_ink_callback on that address, if not do nothing
if there is any kind of error or unexpected return, emit an event and otherwise ignore and continue with the original value
if no error is, continue with the returned value.
Note that use-ink/ink#1674 is discussing taking this one step further: Instead of us manually encoding and decoding between values, there is a way to automate this. We may want to take this ticket and implement it.
The text was updated successfully, but these errors were encountered:
We are creating a manual hookpoint here that is a hardcoded contract call. We will abstract this in the subsequent tickets, once we have this worked out.
After the token balance is calculated here, do the following:
register_specific_ink_callback
for the idON_VOTING_CALC
, if not check if the DAO owner address has aregister_global_ink_callback
on that address, if not do nothingNote that use-ink/ink#1674 is discussing taking this one step further: Instead of us manually encoding and decoding between values, there is a way to automate this. We may want to take this ticket and implement it.
The text was updated successfully, but these errors were encountered: