Skip to content

Commit

Permalink
Fix deprecated deployFromJson
Browse files Browse the repository at this point in the history
  • Loading branch information
Comp0te committed Dec 23, 2024
1 parent 2ed70b1 commit b40dec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/deprecated-deploy-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,15 @@ export const setSignature = (
export const standardPayment = ExecutableDeployItem.standardPayment;

/**
* @deprecated use {@link Deploy.toJson}
* @deprecated use {@link Deploy.toJSON}
* Convert the deploy object to a JSON representation
*
* @param deploy The `Deploy` object to convert to JSON
* @returns A JSON version of the `Deploy`, which can be converted back later
*/
export const deployToJson = (deploy: Deploy) => {
return {
deploy: Deploy.toJson(deploy)
deploy: Deploy.toJSON(deploy)
};
};

Expand Down

0 comments on commit b40dec9

Please sign in to comment.