diff --git a/app/utils/anchor.tsx b/app/utils/anchor.tsx index 00bccd85..a28bfba9 100644 --- a/app/utils/anchor.tsx +++ b/app/utils/anchor.tsx @@ -200,7 +200,7 @@ function mapField(key: string, value: any, type: IdlType, idl: Idl, keySuffix?:
{numberWithSeparator(value.toString())}
); - } else if (type === 'bool' || type === 'bytes' || type === 'string') { + } else if (type === 'bool' || type === 'string') { return ( {value.toString()} ); - } else if (type === 'pubkey') { + } else if (type === 'bytes') { + return ( + +
{(value as Buffer).toString('base64')}
+
+ ); + }else if (type === 'pubkey') { return (