Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #260 from PureStake/develop_brent
Browse files Browse the repository at this point in the history
v1 warning
  • Loading branch information
PureBrent authored Jul 13, 2021
2 parents 51ae468 + e9f5a61 commit 6efbbf6
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export class BaseValidatedTxnWrap {
const missingFields = [];
const extraFields = [];

if(v1Validations) {
this.validityObject['v1'] = new ValidationResponse({
status: ValidationStatus.Warning,
info: 'Version 1 transactions have been deprecated.',
});
}

// Cycle base transaction fields for this type of transaction to verify require fields are present.
// Nullable type fields are being initialized to null instead of undefined.
Object.entries(this.transaction).forEach(([key, value]) => {
Expand Down

0 comments on commit 6efbbf6

Please sign in to comment.