Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/src/ol/account.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export class AccountResolver {
}

@ResolveField(() => Boolean, { nullable: true })
public async reauthorized(@Parent() account: Account): Promise<Boolean | null> {
return this.olService.getReauthorized(account.address);
public async initialized(@Parent() account: Account): Promise<Boolean | null> {
return this.olService.getInitialized(account.address);
}

@ResolveField(() => PaginatedMovements)
Expand Down
4 changes: 2 additions & 2 deletions api/src/ol/ol.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ export class OlService {
}
}

public async getReauthorized(address: Uint8Array): Promise<boolean> {
public async getInitialized(address: Uint8Array): Promise<boolean> {
const res = await this.aptosClient.view({
function: '0x1::reauthorization::is_v8_authorized',
function: '0x1::activity::is_initialized',
type_arguments: [],
arguments: [`0x${Buffer.from(address).toString('hex')}`],
});
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/modules/core/routes/Account/Account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const GET_ACCOUNT = gql`
account(address: $address) {
address
balance
reauthorized
initialized
slowWallet {
unlocked
}
Expand Down