Skip to content

Commit 0dc4d00

Browse files
authored
Merge pull request #180 from iotaledger/fix/update-iotajs-dependency
Fix: Update iota.js dependency to latest version
2 parents de11de7 + 444c7d9 commit 0dc4d00

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"homepage": "/dashboard",
1111
"license": "MIT",
1212
"dependencies": {
13-
"@iota/iota.js": "^1.9.0-stardust.22",
13+
"@iota/iota.js": "^1.9.0-stardust.25",
1414
"classnames": "^2.3.1",
1515
"humanize-duration": "^3.25.2",
1616
"moment": "^2.29.1",

src/app/routes/explorer/Milestone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class Milestone extends AsyncComponent<RouteComponentProps<MilestoneProps>, Mile
147147
const info = await tangleService.info();
148148

149149
this.setState({
150-
blockId: blockIdFromMilestonePayload(info.protocol.protocolVersion, result)
150+
blockId: blockIdFromMilestonePayload(info.protocol.version, result)
151151
});
152152
} catch (error) {
153153
if (error instanceof Error) {

src/services/tangleService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export class TangleService {
203203

204204
if (searchQuery.tag) {
205205
try {
206-
const taggedOutputs = await indexerPlugin.outputs({ tagHex: searchQuery.tag });
206+
const taggedOutputs = await indexerPlugin.basicOutputs({ tagHex: searchQuery.tag });
207207

208208
if (taggedOutputs.items.length > 0) {
209209
return {

src/utils/outputsHelper.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class OutputsHelper {
2323

2424
const promises = [
2525
this.tryFetchOutputs(
26-
async query => indexerPlugin.outputs(query),
26+
async query => indexerPlugin.basicOutputs(query),
2727
{ tagHex: tag },
2828
AssociationType.TAG
2929
),
@@ -42,28 +42,28 @@ export class OutputsHelper {
4242
const promises = [
4343
// Basic output
4444
this.tryFetchOutputs(
45-
async query => indexerPlugin.outputs(query),
45+
async query => indexerPlugin.basicOutputs(query),
4646
{ addressBech32: this.query },
4747
AssociationType.BASIC_OUTPUT
4848
),
4949

5050
// Basic output -> storage return address
5151
this.tryFetchOutputs(
52-
async query => indexerPlugin.outputs(query),
52+
async query => indexerPlugin.basicOutputs(query),
5353
{ storageReturnAddressBech32: this.query },
5454
AssociationType.BASIC_STORAGE_RETURN
5555
),
5656

5757
// Basic output -> expiration return address
5858
this.tryFetchOutputs(
59-
async query => indexerPlugin.outputs(query),
59+
async query => indexerPlugin.basicOutputs(query),
6060
{ expirationReturnAddressBech32: this.query },
6161
AssociationType.BASIC_EXPIRATION_RETURN
6262
),
6363

6464
// Basic output -> sender address
6565
this.tryFetchOutputs(
66-
async query => indexerPlugin.outputs(query),
66+
async query => indexerPlugin.basicOutputs(query),
6767
{ senderBech32: this.query },
6868
AssociationType.BASIC_SENDER
6969
),

0 commit comments

Comments
 (0)