From 2e571cd02597f3715ca1c11b06d9a5920126a4fe Mon Sep 17 00:00:00 2001 From: justindg Date: Tue, 22 Nov 2022 20:49:08 -0800 Subject: [PATCH] Return txHash instead of signature --- .../com/alphawallet/app/viewmodel/WalletConnectViewModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/alphawallet/app/viewmodel/WalletConnectViewModel.java b/app/src/main/java/com/alphawallet/app/viewmodel/WalletConnectViewModel.java index d877ff36e3..4a3b6b118e 100644 --- a/app/src/main/java/com/alphawallet/app/viewmodel/WalletConnectViewModel.java +++ b/app/src/main/java/com/alphawallet/app/viewmodel/WalletConnectViewModel.java @@ -247,14 +247,14 @@ public void sendTransaction(final Web3Transaction finalTx, Wallet wallet, long c { disposable = createTransactionInteract .createWithSig(wallet, finalTx.gasPrice, finalTx.gasLimit, finalTx.payload, chainId) - .subscribe(txData -> callback.transactionSuccess(finalTx, txData.signature), + .subscribe(txData -> callback.transactionSuccess(finalTx, txData.txHash), error -> callback.transactionError(finalTx.leafPosition, error)); } else { disposable = createTransactionInteract .createWithSig(wallet, finalTx, chainId) - .subscribe(txData -> callback.transactionSuccess(finalTx, txData.signature), + .subscribe(txData -> callback.transactionSuccess(finalTx, txData.txHash), error -> callback.transactionError(finalTx.leafPosition, error)); } }