+
+ ID
+ |
|
- {{ account.owner }}
+ {{ account.id }}
+ |
+
+ {{ account.account }}
|
@@ -170,7 +179,8 @@ const actions = ref([
const isPaginationLoading = ref(false);
const accounts: Ref<{
items: {
- owner: string;
+ id: string;
+ account: string;
}[];
cursor: string | null;
}> = ref({
@@ -289,6 +299,7 @@ const getAccounts = async () => {
const res = await FuelTankApi.getAccounts(addressToPublicKey(tankId.value) ?? '');
accounts.value = DTOFactory.forAccounts(res);
} catch (e) {
+ console.log(e);
// Do nothing
} finally {
isLoading.value = false;
diff --git a/resources/js/factory/account.ts b/resources/js/factory/account.ts
index 5768438..4128d30 100644
--- a/resources/js/factory/account.ts
+++ b/resources/js/factory/account.ts
@@ -4,7 +4,6 @@ export class DTOAccountFactory {
public static buildAccount(account: any): any {
return {
...account,
- owner: publicKeyToAddress(account.owner.account.publicKey),
account: publicKeyToAddress(account.account.publicKey),
};
}