Skip to content

Commit

Permalink
Add check for WriteCLValue to TransformKind, added executionResultsV1…
Browse files Browse the repository at this point in the history
… to InfoGetDeployResult
  • Loading branch information
alexmyshchyshyn committed Dec 23, 2024
1 parent a4acbda commit 025c14d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rpc/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ export class InfoGetDeployResult {
})
executionResults: DeployExecutionInfo;

@jsonArrayMember(DeployExecutionResult, {
name: 'execution_results'
})
executionResultsV1: DeployExecutionResult[];

rawJSON: any;

toInfoGetTransactionResult(): InfoGetTransactionResult {
Expand Down
32 changes: 32 additions & 0 deletions src/types/StoredValue.test.ts

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/types/Transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ export class TransformKind {
return this.isTransformation('WriteAccount');
}

/**
* Checks if the transformation is a WriteCLValue.
*
* @returns `true` if the transformation is a WriteCLValue, otherwise `false`.
*/
public isCLValueWrite(): boolean {
return this.isTransformation('WriteCLValue');
}

/**
* Checks if the transformation is a WriteContract.
*
Expand Down

0 comments on commit 025c14d

Please sign in to comment.