Skip to content

Commit

Permalink
hotfix(explorer): revert special rendering for vector<u8> (#5240)
Browse files Browse the repository at this point in the history
* fix(explorer): Revert special rendering for `vector<u8>`

* unused import
  • Loading branch information
marc2332 authored Feb 6, 2025
1 parent c1a4f75 commit 01cada2
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import { KeyValueInfo, TitleSize } from '@iota/apps-ui-kit';
import { type IotaCallArg } from '@iota/iota-sdk/client';
import { toHEX } from '@iota/iota-sdk/utils';
import { ProgrammableTxnBlockCard, AddressLink, ObjectLink, CollapsibleCard } from '~/components';
import { useBreakpoint } from '~/hooks';

Expand Down Expand Up @@ -49,13 +48,6 @@ export function InputsCard({ inputs }: InputsCardProps): JSX.Element | null {
} else if (REGEX_NUMBER.test(stringValue)) {
const bigNumber = BigInt(stringValue);
renderValue = bigNumber.toLocaleString();
} else if (
'valueType' in input &&
'value' in input &&
input.valueType === 'vector<u8>' &&
key === 'value'
) {
renderValue = toHEX(new Uint8Array(stringValue.split(',').map(Number)));
} else {
renderValue = stringValue;
}
Expand Down

0 comments on commit 01cada2

Please sign in to comment.