Skip to content

Commit

Permalink
dApp registration fix (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 authored Feb 13, 2024
1 parent 6ad74ba commit 00df239
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/BaseApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ export class BaseApi implements IAstarApi {
);
const dappUnwrapped = dapp.unwrapOrDefault();

return { developer: dappUnwrapped.owner.toString(), state: dappUnwrapped.state.toString() };
// All dApps returned by th query above are registered.
return { developer: dappUnwrapped.owner.toString(), state: 'Registered' };
} else {
// TODO remove after Astar deployment.
const dapp = await this._api.query.dappsStaking.registeredDapps<Option<DappInfo>>(
Expand Down

0 comments on commit 00df239

Please sign in to comment.