diff --git a/src/screens/ApproveTransaction.tsx b/src/screens/ApproveTransaction.tsx index 83229dd..c6d2912 100644 --- a/src/screens/ApproveTransaction.tsx +++ b/src/screens/ApproveTransaction.tsx @@ -253,6 +253,13 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => { navigation.navigate('Home'); }; + const replacer = (key: string, value: any): any => { + if (value instanceof Uint8Array) { + return Buffer.from(value).toString('hex'); + } + return value; + }; + return ( <> @@ -278,7 +285,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => { - {JSON.stringify(transactionMessage, null, 2)} + {JSON.stringify(transactionMessage, replacer, 2)} <>