diff --git a/.changeset/serious-spiders-argue.md b/.changeset/serious-spiders-argue.md new file mode 100644 index 000000000..806019a5e --- /dev/null +++ b/.changeset/serious-spiders-argue.md @@ -0,0 +1,5 @@ +--- +"@onflow/fcl": patch +--- + +Fix return type for fcl.mutate diff --git a/package-lock.json b/package-lock.json index 1427d34db..2cd29e9fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24133,11 +24133,11 @@ }, "packages/config": { "name": "@onflow/config", - "version": "1.1.0-alpha.5", + "version": "1.1.0-alpha.6", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.18.6", - "@onflow/util-actor": "^1.2.0-alpha.0", + "@onflow/util-actor": "^1.2.0-alpha.1", "eslint": "^8.34.0", "eslint-plugin-jsdoc": "^40.0.0" }, @@ -35217,11 +35217,11 @@ }, "packages/util-actor": { "name": "@onflow/util-actor", - "version": "1.2.0-alpha.0", + "version": "1.2.0-alpha.1", "license": "Apache-2.0", "dependencies": { "@babel/runtime": "^7.18.6", - "queue-microtask": "^1.2.3" + "queue-microtask": "1.2.3" }, "devDependencies": { "@onflow/fcl-bundle": "^1.3.0-alpha.0", @@ -44983,7 +44983,7 @@ "requires": { "@babel/runtime": "^7.18.6", "@onflow/fcl-bundle": "^1.3.0-alpha.0", - "@onflow/util-actor": "^1.2.0-alpha.0", + "@onflow/util-actor": "^1.2.0-alpha.1", "eslint": "^8.34.0", "eslint-plugin-jsdoc": "^40.0.0", "jest": "25.3.0", @@ -53046,7 +53046,7 @@ "@onflow/fcl-bundle": "^1.3.0-alpha.0", "jest": "26.4.0", "jest-esm-transformer": "1.0.0", - "queue-microtask": "^1.2.3" + "queue-microtask": "1.2.3" }, "dependencies": { "@jest/console": { diff --git a/packages/fcl/src/exec/mutate.js b/packages/fcl/src/exec/mutate.js index 162450556..6c763eb1f 100644 --- a/packages/fcl/src/exec/mutate.js +++ b/packages/fcl/src/exec/mutate.js @@ -14,7 +14,7 @@ import {isNumber} from "./utils/is" * @param {import("../fcl").ArgsFn} [opts.args] - Arguments passed to cadence transaction * @param {object} [opts.template] - Interaction Template for a transaction * @param {number} [opts.limit] - Compute Limit for transaction - * @returns {string} Transaction Id + * @returns {Promise} Transaction Id * * @example * fcl.mutate({