Sfoglia il codice sorgente

storage node runtime api fix query to discovery module

Mokhtar Naamani 4 anni fa
parent
commit
c39e4ec1d2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      storage-node/packages/runtime-api/discovery.js

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

@@ -40,7 +40,7 @@ class DiscoveryApi {
    * Get AccountInfo of a storage provider
    */
   async getAccountInfo (storageProviderId) {
-    const info = await this.base.api.query.discovery.accountInfoByAccountId(storageProviderId)
+    const info = await this.base.api.query.discovery.accountInfoByStorageProviderId(storageProviderId)
     // Not an Option so we use default value check to know if info was found
     return info.expires_at.eq(0) ? null : info
   }