File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
examples/vue-ts/src/components
packages/use-wallet-vue/src Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const sendTransaction = async (wallet: Wallet) => {
34
34
35
35
try {
36
36
const atc = new algosdk .AtomicTransactionComposer ()
37
- const suggestedParams = await algodClient .getTransactionParams ().do ()
37
+ const suggestedParams = await algodClient .value . getTransactionParams ().do ()
38
38
39
39
const transaction = algosdk .makePaymentTxnWithSuggestedParamsFromObject ({
40
40
from: wallet .activeAccount .address ,
@@ -47,7 +47,7 @@ const sendTransaction = async (wallet: Wallet) => {
47
47
48
48
console .info (` [App] Sending transaction... ` , transaction )
49
49
50
- const result = await atc .execute (algodClient , 4 )
50
+ const result = await atc .execute (algodClient . value , 4 )
51
51
52
52
console .info (` [App] ✅ Successfully sent transaction! ` , {
53
53
confirmedRound: result .confirmedRound ,
Original file line number Diff line number Diff line change @@ -112,7 +112,12 @@ export function useWallet() {
112
112
113
113
return {
114
114
wallets,
115
- algodClient,
115
+ algodClient : computed ( ( ) => {
116
+ if ( ! algodClient . value ) {
117
+ throw new Error ( 'Algod client is undefined' )
118
+ }
119
+ return algodClient . value
120
+ } ) ,
116
121
activeNetwork,
117
122
activeWallet,
118
123
activeWalletAccounts,
You can’t perform that action at this time.
0 commit comments