Skip to content

Commit

Permalink
Fix: Block issuer key render (#1029)
Browse files Browse the repository at this point in the history
* fix: Fix render of BlockIssuerKey on OutputPage

* fix: Fix import for BlockIssuerKey (Bumps SDK to latest commit)

* fix: update sdk commit hash in the nova build template yaml

---------

Co-authored-by: Branko Bosnic <[email protected]>
  • Loading branch information
msarcev and brancoder authored Jan 31, 2024
1 parent 0c85efc commit 9fb8694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nova-build-temp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
TARGET_COMMIT:
description: "Target Commit Hash for the SDK"
required: false
default: "05b7cec884177ba11c8848d0d52c850a8bb496fe"
default: "08318f6e3f92af609b89c571462ea31b32e7c121"
environment:
type: choice
description: "Select the environment to deploy to"
Expand Down
5 changes: 2 additions & 3 deletions client/src/app/components/nova/FeaturesView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
BlockIssuerFeature,
Ed25519PublicKeyHashBlockIssuerKey,
Feature,
FeatureType,
IssuerFeature,
Expand All @@ -9,8 +10,6 @@ import {
StakingFeature,
TagFeature,
} from "@iota/sdk-wasm-nova/web";
// will this import work ? why isnt it exported from web ?
import { Ed25519BlockIssuerKey } from "@iota/sdk-wasm-nova/web/lib/types/block/output/block-issuer-key";
import classNames from "classnames";
import React, { useState } from "react";
import AddressView from "./address/AddressView";
Expand Down Expand Up @@ -75,7 +74,7 @@ const FeatureView: React.FC<FeatureViewProps> = ({ feature, isImmutable, isPreEx
<div className="card--label">Block issuer keys:</div>
{Array.from((feature as BlockIssuerFeature).blockIssuerKeys).map((blockIssuerKey, idx) => (
<div key={idx} className="card--value row">
{(blockIssuerKey as Ed25519BlockIssuerKey).publicKey}
{(blockIssuerKey as Ed25519PublicKeyHashBlockIssuerKey).pubKeyHash}
</div>
))}
</div>
Expand Down

0 comments on commit 9fb8694

Please sign in to comment.