Compare commits

..

1 Commits

Author SHA1 Message Date
17c3635d09 Decode message when sending tx to create a validator 2024-08-08 17:48:36 +05:30

View File

@ -258,13 +258,6 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => {
navigation.navigate('Laconic');
};
const replacer = (key: string, value: any): any => {
if (value instanceof Uint8Array) {
return Buffer.from(value).toString('hex');
}
return value;
};
return (
<>
<ScrollView contentContainerStyle={styles.approveTransaction}>
@ -289,7 +282,7 @@ const ApproveTransaction = ({ route }: ApproveTransactionProps) => {
</Text>
<View style={styles.messageBody}>
<Text variant="bodyLarge">
{JSON.stringify(transactionMessage, replacer, 2)}
{JSON.stringify(transactionMessage, null, 2)}
</Text>
</View>
<>