@@ -82,7 +82,7 @@ export default class IconService {
82
82
*/
83
83
getTotalSupply ( height ?: Hash ) : HttpCall < BigNumber > {
84
84
let params ;
85
- if ( height == undefined ) {
85
+ if ( height === undefined ) {
86
86
params = null ;
87
87
} else {
88
88
params = { height } ;
@@ -101,7 +101,7 @@ export default class IconService {
101
101
*/
102
102
getBalance ( address : string , height ?: Hash ) : HttpCall < BigNumber > {
103
103
let params ;
104
- if ( height == undefined ) {
104
+ if ( height === undefined ) {
105
105
params = { address } ;
106
106
} else {
107
107
params = { address, height } ;
@@ -172,7 +172,7 @@ export default class IconService {
172
172
*/
173
173
getScoreApi ( address : string , height ?: Hash ) : HttpCall < ScoreApiList > {
174
174
let params ;
175
- if ( height == undefined ) {
175
+ if ( height === undefined ) {
176
176
params = { address } ;
177
177
} else {
178
178
params = { address, height } ;
@@ -196,7 +196,7 @@ export default class IconService {
196
196
*/
197
197
getScoreStatus ( address : string , height ?: Hash ) : HttpCall < ScoreApiList > {
198
198
let params ;
199
- if ( height == undefined ) {
199
+ if ( height === undefined ) {
200
200
params = { address } ;
201
201
} else {
202
202
params = { address, height } ;
@@ -493,7 +493,7 @@ export default class IconService {
493
493
height ?: string | BigNumber
494
494
) : HttpCall < BTPNetworkInfo > {
495
495
let params ;
496
- if ( height == undefined ) params = { id } ;
496
+ if ( height === undefined ) params = { id } ;
497
497
else params = { id, height } ;
498
498
499
499
const requestId = Util . getCurrentTime ( ) ;
@@ -513,7 +513,7 @@ export default class IconService {
513
513
height ?: string | BigNumber
514
514
) : HttpCall < BTPNetworkTypeInfo > {
515
515
let params ;
516
- if ( height == undefined ) params = { id } ;
516
+ if ( height === undefined ) params = { id } ;
517
517
else params = { id, height } ;
518
518
519
519
const requestId = Util . getCurrentTime ( ) ;
0 commit comments