Add transaction signing functionality to App component
- Introduced a new button to sign transactions, allowing users to generate a signature for a predefined raw transaction. - Updated state management to handle the transaction signature and display it in the UI. - Enhanced connection logic to ensure the user's address is retrieved before signing. - Modified the WalletStore to improve transaction status handling during updates.
This commit is contained in:
1 parent
435ccbb3eb
commit
13eea0bfad
4 files changed
+32
-3
No files matched your search
+2
-1
@@ -90,7 +90,8 @@ export class WalletStore {
|
||||
|
||||
let shouldDispatch = false;
|
||||
dataTransactions.forEach(transaction => {
|
||||
if (!currentTransactions.find(t => t.id === transaction.id)) {
|
||||
const currentTransaction = currentTransactions.find(t => t.id === transaction.id);
|
||||
if (currentTransaction && currentTransaction.status !== transaction.status) {
|
||||
shouldDispatch = true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user