@@ -296,6 +296,7 @@ const CardanoProvider = (props: Props) => {
296296 const [ walletApi , setWalletApi ] = useState < CardanoApiWallet | undefined > (
297297 undefined ,
298298 ) ;
299+
299300 const [ address , setAddress ] = useState < string | undefined > ( undefined ) ;
300301 const [ pubDRepKey , setPubDRepKey ] = useState < string > ( "" ) ;
301302 const [ dRepID , setDRepID ] = useState < string > ( "" ) ;
@@ -383,6 +384,7 @@ const CardanoProvider = (props: Props) => {
383384 } ) ;
384385 await getChangeAddress ( enabledApi ) ;
385386 await getUsedAddresses ( enabledApi ) ;
387+
386388 setIsEnabled ( true ) ;
387389 setWalletApi ( enabledApi ) ;
388390 // Check if wallet has enabled the CIP-95 extension
@@ -474,6 +476,7 @@ const CardanoProvider = (props: Props) => {
474476
475477 return { status : t ( "ok" ) , stakeKey : stakeKeySet } ;
476478 } catch ( e ) {
479+ console . error ( { e } ) ;
477480 console . error ( e ) ;
478481 setError ( `${ e } ` ) ;
479482 setAddress ( undefined ) ;
@@ -1087,7 +1090,7 @@ const CardanoProvider = (props: Props) => {
10871090 console . error ( e ) ;
10881091 }
10891092 } ,
1090- [ ] ,
1093+ [ epochParams ?. gov_action_deposit , getRewardAddress ] ,
10911094 ) ;
10921095
10931096 // update committee action
@@ -1163,7 +1166,11 @@ const CardanoProvider = (props: Props) => {
11631166 console . error ( e ) ;
11641167 }
11651168 } ,
1166- [ ] ,
1169+ [
1170+ buildCredentialFromBech32Key ,
1171+ epochParams ?. gov_action_deposit ,
1172+ getRewardAddress ,
1173+ ] ,
11671174 ) ;
11681175
11691176 // info action
@@ -1226,7 +1233,7 @@ const CardanoProvider = (props: Props) => {
12261233 console . error ( err ) ;
12271234 }
12281235 } ,
1229- [ ] ,
1236+ [ epochParams ?. gov_action_deposit , getRewardAddress ] ,
12301237 ) ;
12311238
12321239 // treasury action
0 commit comments