@@ -848,7 +848,7 @@ class Client {
848
848
const address = this . connectedAddresses ;
849
849
const currentAddress = address [ this . network ] ;
850
850
851
- if ( this . connectedAddresses [ this . network ] . receiving . length > 0 ) {
851
+ if ( this . connectedAddresses [ this . network ] . receiving . length === 0 ) {
852
852
throw new Error ( 'No addresses connected. Call connect first.' ) ;
853
853
}
854
854
try {
@@ -885,7 +885,7 @@ class Client {
885
885
const address = this . connectedAddresses ;
886
886
const currentAddress = address [ this . network ] ;
887
887
888
- if ( this . connectedAddresses [ this . network ] . receiving . length > 0 ) {
888
+ if ( this . connectedAddresses [ this . network ] . receiving . length === 0 ) {
889
889
throw new Error ( 'No addresses connected. Call connect first.' ) ;
890
890
}
891
891
@@ -940,7 +940,7 @@ class Client {
940
940
941
941
async getDelegations ( ) : Promise < any [ ] > {
942
942
this . ensureInitialized ( ) ;
943
- if ( this . connectedAddresses [ this . network ] . receiving . length > 0 ) {
943
+ if ( this . connectedAddresses [ this . network ] . receiving . length === 0 ) {
944
944
throw new Error ( 'No addresses connected. Call connect first.' ) ;
945
945
}
946
946
const address = this . connectedAddresses ;
@@ -973,7 +973,7 @@ class Client {
973
973
974
974
async getTokensOwned ( ) : Promise < any [ ] > {
975
975
this . ensureInitialized ( ) ;
976
- if ( this . connectedAddresses [ this . network ] . receiving . length > 0 ) {
976
+ if ( this . connectedAddresses [ this . network ] . receiving . length === 0 ) {
977
977
throw new Error ( 'No addresses connected. Call connect first.' ) ;
978
978
}
979
979
const address = this . connectedAddresses ;
0 commit comments