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
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Transaction type to compare the type against, for example const TRANSACTION_TRANSFER_TYPE = 0; for type 0 transaction is assigned in a way that can be overridden by the transactions that inherit after BaseTransction.
An example would be implementing the valid type as a static field:
class TransferTransaction {
protected static TYPE = 10;
...
Actual behavior
The valid type is assigned as a private variable. Each function comparing a type (validate) needs to be re-implemented and cannot be overridden if a BaseTransction cannot access a valid transaction type.
Which version(s) does this affect? (Environment, OS, etc...)
2.0.0
The text was updated successfully, but these errors were encountered:
Expected behavior
Transaction type to compare the type against, for example
const TRANSACTION_TRANSFER_TYPE = 0;
for type 0 transaction is assigned in a way that can be overridden by the transactions that inherit afterBaseTransction
.An example would be implementing the valid type as a static field:
Actual behavior
The valid type is assigned as a private variable. Each function comparing a type (
validate
) needs to be re-implemented and cannot be overridden if a BaseTransction cannot access a valid transaction type.Which version(s) does this affect? (Environment, OS, etc...)
2.0.0
The text was updated successfully, but these errors were encountered: