@ic-reactor/core 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CandidAdapter = void 0;
|
|
13
13
|
const agent_1 = require("@dfinity/agent");
|
|
14
|
-
const principal_1 = require("@dfinity/principal");
|
|
15
14
|
const constants_1 = require("../../utils/constants");
|
|
16
15
|
class CandidAdapter {
|
|
17
16
|
constructor({ agentManager, agent, didjsCanisterId, }) {
|
|
@@ -49,12 +48,9 @@ class CandidAdapter {
|
|
|
49
48
|
}
|
|
50
49
|
getFromMetadata(canisterId) {
|
|
51
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
if (typeof canisterId === "string") {
|
|
53
|
-
canisterId = principal_1.Principal.fromText(canisterId);
|
|
54
|
-
}
|
|
55
51
|
const status = yield agent_1.CanisterStatus.request({
|
|
56
52
|
agent: this.agent,
|
|
57
|
-
canisterId,
|
|
53
|
+
canisterId: canisterId,
|
|
58
54
|
paths: ["candid"],
|
|
59
55
|
});
|
|
60
56
|
const did = status.get("candid");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic-reactor/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A library for intracting with the Internet Computer canisters",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=10"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "fc864ae3a99c94f41067e3a3d6ac80d1a66a98f0"
|
|
47
47
|
}
|