Skip to content

Commit 8846fa5

Browse files
committed
remove the ability to send completely raw bytes
1 parent 1382008 commit 8846fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/minotari_console_wallet/src/grpc/wallet_grpc_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ impl wallet_server::Wallet for WalletGrpcServer {
704704
let mut transfers = Vec::new();
705705
for (hex_address, address, amount, fee_per_gram, payment_type, user_payment_id, raw_payment_id) in recipients {
706706
let payment_id = if !raw_payment_id.is_empty() {
707-
PaymentId::from_bytes(&raw_payment_id)
707+
PaymentId::open(raw_payment_id.to_vec(), TxType::PaymentToOther)
708708
} else if let Some(user_pay_id) = user_payment_id {
709709
let bytes = match (
710710
user_pay_id.u256.is_empty(),

0 commit comments

Comments
 (0)