소스 검색

storage-node: runtime-api/assets fix function call name

Mokhtar Naamani 4 년 전
부모
커밋
575d258dd9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      storage-node/packages/runtime-api/assets.js

+ 1 - 1
storage-node/packages/runtime-api/assets.js

@@ -122,7 +122,7 @@ class AssetsApi {
     contentId = parseContentId(contentId)
     const tx = this.base.api.tx.dataObjectStorageRegistry.addRelationship(storageProviderId, contentId)
 
-    return this.base.signAndSendThen(providerAccountId, tx, {
+    return this.base.signAndSendThenGetEventResult(providerAccountId, tx, {
       eventModule: 'dataObjectStorageRegistry',
       eventName: 'DataObjectStorageRelationshipAdded',
       eventProperty: 'DataObjectStorageRelationshipId', // index 0