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