Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

fix: ark explorer links #677

Merged
merged 1 commit into from Aug 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/platform-sdk-ark/src/services/link.ts
Expand Up @@ -16,11 +16,11 @@ export class LinkService implements Contracts.LinkService {
}

public block(id: string): string {
return `${this.#baseUrl}blocks/${id}`;
return `${this.#baseUrl}block/${id}`;
}

public transaction(id: string): string {
return `${this.#baseUrl}transactions/${id}`;
return `${this.#baseUrl}transaction/${id}`;
}

public wallet(id: string): string {
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-sdk-profiles/src/dto/transaction.test.ts
Expand Up @@ -52,5 +52,5 @@ it("should have an explorer link", async () => {
id: () => "transactionId",
});

expect(subject.explorerLink()).toBe("https://dexplorer.ark.io/transactions/transactionId");
expect(subject.explorerLink()).toBe("https://dexplorer.ark.io/transaction/transactionId");
});