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
@@ -14,6 +14,9 @@ export const parseSignedTxFromStartParam = (webApp: WebApp): SignTransactionResu
|
||||
if (!startParam) return null;
|
||||
|
||||
const result = decodeResult(startParam);
|
||||
if ('id' in result) {
|
||||
result.id = Number(result.id);
|
||||
}
|
||||
return 'signedTx' in result ? result : null;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user