-
Notifications
You must be signed in to change notification settings - Fork 456
Remove BaseTransaction extension requirement #3822
Conversation
@mitsujutsu |
c525830
to
f06dfd9
Compare
I am not sure why the issue was initiated. To my understanding the behaviour to extend from And this is not blocking developers to in their custom functionality, rather just restricting to follow patterns and structure our sdk/framework defined, which is a good practice in designing any mature framework. |
Extending BaseTransaction should not be required if the user can implement the required functionality on their own. They can still extend BaseTransaction if they want to. Also this check was causing issues with type 5, 6 and 7 transactions in |
@mitsujutsu
This should be debugged and fixed separately, its not related to this assertion.
With this reference we will loose the structural understanding of any custom transaction, users can do something strange with in their implementation. Also if you look at this code of the constructor for Also look at this code which refers to this getter And see at these lines without extending, we ask user to initialise these properties to their implementation. |
@nazarhussain |
Above discussion will be tackle on #3877 |
We should close this PR and replace this check with better extended approach in other issue if we want. If you use |
@nazarhussain Without this PR, lisk-core is currently not usable, which affects other developments. |
That refers to wrong usage |
What was the problem?
Any custom transaction should not be required to explicitly extend BaseTransaction as long as it implements all the required functionality.
How did I fix it?
Modified
registerTransaction
checks.Review checklist