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.
Expect custom transaction to not crash during validation if FEE member is not defined.
Actual behavior
The PR #3893 introduced a new static member called FEE to BaseTransaction. This property should be implemented by custom transactions to define its own fee but it crashes during validation if it's not defined.
Steps to reproduce
Create a custom transaction extending BaseTransaction like:
class CustomTransaction extends BaseTransaction {
static get TYPE () {
return 10;
}
validateAsset() {
return[];
}
}
Then:
const tx = new CustomTransaction({
recipientId: '10881167371402274308L',
});
tx.sign('passphrase');
tx.validate();
validate() will throw eq() not a number: undefined
Which version(s) does this affect? (Environment, OS, etc...)
2.1
The text was updated successfully, but these errors were encountered:
Expected behavior
Expect custom transaction to not crash during validation if
FEE
member is not defined.Actual behavior
The PR #3893 introduced a new static member called
FEE
toBaseTransaction
. This property should be implemented by custom transactions to define its own fee but it crashes during validation if it's not defined.Steps to reproduce
Create a custom transaction extending
BaseTransaction
like:Then:
validate()
will throweq() not a number: undefined
Which version(s) does this affect? (Environment, OS, etc...)
2.1
The text was updated successfully, but these errors were encountered: