@@ -405,33 +405,33 @@ export const contractInfoQuery = async ({
405405 return {
406406 contractId : result . contractId ?. toString ( ) ,
407407 accountId : result . accountId ?. toString ( ) ,
408- contractAccountId : result . contractAccountId || undefined ,
408+ contractAccountId : result . contractAccountId ,
409409 adminKey : result . adminKey ?. toString ( ) ,
410410 expirationTime : result . expirationTime ?. toString ( ) ,
411411 autoRenewPeriod : result . autoRenewPeriod ?. seconds ?. toString ( ) ,
412412 autoRenewAccountId : result . autoRenewAccountId ?. toString ( ) ,
413413 storage : result . storage ?. toString ( ) ,
414- contractMemo : result . contractMemo || undefined ,
414+ contractMemo : result . contractMemo ,
415415 balance : result . balance ?. toTinybars ( ) . toString ( ) ,
416416 isDeleted : result . isDeleted ,
417417 maxAutomaticTokenAssociations :
418418 result . maxAutomaticTokenAssociations ?. toString ( ) ,
419419 ledgerId : result . ledgerId ?. toString ( ) ,
420- stakingInfo : result . stakingInfo
421- ? {
422- declineStakingReward : result . stakingInfo . declineStakingReward ,
423- stakePeriodStart :
424- result . stakingInfo . stakePeriodStart ?. toString ( ) ,
425- pendingReward : result . stakingInfo . pendingReward
426- ?. toTinybars ( )
427- . toString ( ) ,
428- stakedToMe : result . stakingInfo . stakedToMe
429- ?. toTinybars ( )
430- . toString ( ) ,
431- stakedAccountId :
432- result . stakingInfo . stakedAccountId ?. toString ( ) ,
433- stakedNodeId : result . stakingInfo . stakedNodeId ?. toString ( ) ,
434- }
435- : undefined ,
420+ stakingInfo : {
421+ declineStakingReward :
422+ result . stakingInfo ? .declineStakingReward ,
423+ stakePeriodStart :
424+ result . stakingInfo ? .stakePeriodStart ?. toString ( ) ,
425+ pendingReward : result . stakingInfo ? .pendingReward
426+ ?. toTinybars ( )
427+ . toString ( ) ,
428+ stakedToMe : result . stakingInfo ? .stakedToMe
429+ ?. toTinybars ( )
430+ . toString ( ) ,
431+ stakedAccountId :
432+ result . stakingInfo ? .stakedAccountId ?. toString ( ) ,
433+ stakedNodeId :
434+ result . stakingInfo ?. stakedNodeId ?. toString ( ) ,
435+ } ,
436436 } ;
437437} ;
0 commit comments