Skip to content

Commit

Permalink
default value for draft transaction properties
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Oct 23, 2023
1 parent ebf9063 commit 41538ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/draftTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class DraftTransaction {
this.sender = options.sender;
this.receiver = options.receiver;
this.gasLimit = options.gasLimit;
this.value = options.value;
this.data = options.data;
this.value = options.value ?? 0;
this.data = options.data ?? new Uint8Array();
}
}

0 comments on commit 41538ac

Please sign in to comment.