Skip to content

Commit

Permalink
Fix types in RegularTransactionEssence (#938)
Browse files Browse the repository at this point in the history
* fix types

* fix typo
  • Loading branch information
abdulmth authored Jul 27, 2023
1 parent 5260caf commit 4d74080
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions bindings/nodejs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security -->

## 1.0.2 - 2023-MM-DD

### Fixed

- Constructor types in `RegularTransactionEssence`;


## 1.0.1 - 2023-07-25

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ class RegularTransactionEssence extends TransactionEssence {
@Type(() => Input, {
discriminator: InputDiscriminator,
})
inputs: [Input];
inputs: Input[];

@Type(() => Output, {
discriminator: OutputDiscriminator,
})
outputs: [Output];
outputs: Output[];

@Type(() => Payload, {
discriminator: PayloadDiscriminator,
Expand All @@ -56,8 +56,8 @@ class RegularTransactionEssence extends TransactionEssence {
constructor(
networkId: number,
inputsCommitment: HexEncodedString,
inputs: [Input],
outputs: [Output],
inputs: Input[],
outputs: Output[],
payload: Payload | undefined,
) {
super(TransactionEssenceType.Regular);
Expand Down

0 comments on commit 4d74080

Please sign in to comment.