@@ -257,7 +257,7 @@ export class JSONRpcCoreClient extends CoreClient {
257257 ? effects
258258 : undefined ) as SuiClientTypes . Transaction < Include > [ 'effects' ] ,
259259 objectTypes : ( options . include ?. objectTypes
260- ? Promise . resolve ( objectTypes )
260+ ? objectTypes
261261 : undefined ) as SuiClientTypes . Transaction < Include > [ 'objectTypes' ] ,
262262 signatures : [ ] ,
263263 transaction : ( options . include ?. transaction
@@ -625,7 +625,7 @@ function parseTransaction<Include extends SuiClientTypes.TransactionInclude = ob
625625 if ( include ?. objectTypes ) {
626626 transaction . objectChanges ?. forEach ( ( change ) => {
627627 if ( change . type !== 'published' ) {
628- objectTypes [ change . objectId ] = change . objectType ;
628+ objectTypes [ change . objectId ] = normalizeStructTag ( change . objectType ) ;
629629 }
630630 } ) ;
631631 }
@@ -670,7 +670,7 @@ function parseTransaction<Include extends SuiClientTypes.TransactionInclude = ob
670670 ? parseTransactionEffectsBcs ( effectsBytes )
671671 : undefined ) as SuiClientTypes . Transaction < Include > [ 'effects' ] ,
672672 objectTypes : ( include ?. objectTypes
673- ? Promise . resolve ( objectTypes )
673+ ? objectTypes
674674 : undefined ) as SuiClientTypes . Transaction < Include > [ 'objectTypes' ] ,
675675 transaction : transactionData as SuiClientTypes . Transaction < Include > [ 'transaction' ] ,
676676 signatures,
@@ -751,7 +751,7 @@ function parseTransactionEffectsJson({
751751 outputOwner : parseOwner ( change . recipient ) ,
752752 idOperation : 'None' ,
753753 } ) ;
754- objectTypes [ change . objectId ] = change . objectType ;
754+ objectTypes [ change . objectId ] = normalizeStructTag ( change . objectType ) ;
755755 break ;
756756 case 'mutated' :
757757 changedObjects . push ( {
@@ -766,7 +766,7 @@ function parseTransactionEffectsJson({
766766 outputOwner : parseOwner ( change . owner ) ,
767767 idOperation : 'None' ,
768768 } ) ;
769- objectTypes [ change . objectId ] = change . objectType ;
769+ objectTypes [ change . objectId ] = normalizeStructTag ( change . objectType ) ;
770770 break ;
771771 case 'deleted' :
772772 changedObjects . push ( {
@@ -781,7 +781,7 @@ function parseTransactionEffectsJson({
781781 outputOwner : null ,
782782 idOperation : 'Deleted' ,
783783 } ) ;
784- objectTypes [ change . objectId ] = change . objectType ;
784+ objectTypes [ change . objectId ] = normalizeStructTag ( change . objectType ) ;
785785 break ;
786786 case 'wrapped' :
787787 changedObjects . push ( {
@@ -803,7 +803,7 @@ function parseTransactionEffectsJson({
803803 } ,
804804 idOperation : 'None' ,
805805 } ) ;
806- objectTypes [ change . objectId ] = change . objectType ;
806+ objectTypes [ change . objectId ] = normalizeStructTag ( change . objectType ) ;
807807 break ;
808808 case 'created' :
809809 changedObjects . push ( {
@@ -818,7 +818,7 @@ function parseTransactionEffectsJson({
818818 outputOwner : parseOwner ( change . owner ) ,
819819 idOperation : 'Created' ,
820820 } ) ;
821- objectTypes [ change . objectId ] = change . objectType ;
821+ objectTypes [ change . objectId ] = normalizeStructTag ( change . objectType ) ;
822822 break ;
823823 }
824824 } ) ;
0 commit comments