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
I recently created a contract that had some on_notify logic in it.
The contract had no callable actions though, just the on_notify.
As expected, compiling the contract gave me a couple warnings about a blank contract, and said that no ABI was generated.
I pushed this contract to the chain, and the notification handler did not work.
I needed to add a "dummy action" to the contract, in order to generate an ABI. Once I did this, the notification handler also worked properly.
It would likely be useful if one could compile this same type of contract without needing to add the dummy action in order to generate an ABI and get the notification handler to work.
The text was updated successfully, but these errors were encountered:
I recently created a contract that had some on_notify logic in it.
The contract had no callable actions though, just the on_notify.
As expected, compiling the contract gave me a couple warnings about a blank contract, and said that no ABI was generated.
I pushed this contract to the chain, and the notification handler did not work.
I needed to add a "dummy action" to the contract, in order to generate an ABI. Once I did this, the notification handler also worked properly.
It would likely be useful if one could compile this same type of contract without needing to add the dummy action in order to generate an ABI and get the notification handler to work.
The text was updated successfully, but these errors were encountered: